Skip to content

Commit 63f0f55

Browse files
committed
attributes: prepare to release v0.1.23
# 0.1.23 (October 6, 2022) This release of `tracing-attributes` fixes a bug where compiler diagnostic spans for type errorsin `#[instrument]`ed `async fn`s have the location of the `#[instrument]` attribute rather than the location of the actual error, and a bug where inner attributes in `#[instrument]`ed functions would cause a compiler error. ### Fixed - Fix incorrect handling of inner attributes in `#[instrument]`ed functions ([#2307]) - Add fake return to improve spans generated for type errors in `async fn`s ([#2270]) - Updated `syn` dependency to fix compilation with `-Z minimal-versions` ([#2246]) Thanks to new contributors @compiler-errors and @e-nomem, as well as @CAD97, for contributing to this release! [#2307]: #2307 [#2270]: #2270 [#2246]: #2246
1 parent 92cb2f0 commit 63f0f55

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

tracing-attributes/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# 0.1.23 (October 6, 2022)
2+
3+
This release of `tracing-attributes` fixes a bug where compiler diagnostic spans
4+
for type errorsin `#[instrument]`ed `async fn`s have the location of the
5+
`#[instrument]` attribute rather than the location of the actual error, and a
6+
bug where inner attributes in `#[instrument]`ed functions would cause a compiler
7+
error.
8+
### Fixed
9+
10+
- Fix incorrect handling of inner attributes in `#[instrument]`ed functions ([#2307])
11+
- Add fake return to improve spans generated for type errors in `async fn`s ([#2270])
12+
- Updated `syn` dependency to fix compilation with `-Z minimal-versions`
13+
([#2246])
14+
15+
Thanks to new contributors @compiler-errors and @e-nomem, as well as @CAD97, for
16+
contributing to this release!
17+
18+
[#2307]: https://github.com/tokio-rs/tracing/pull/2307
19+
[#2270]: https://github.com/tokio-rs/tracing/pull/2270
20+
[#2246]: https://github.com/tokio-rs/tracing/pull/2246
21+
122
# 0.1.22 (July 1, 2022)
223

324
This release fixes an issue where using the `err` or `ret` arguments to

tracing-attributes/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name = "tracing-attributes"
88
# - README.md
99
# - Update CHANGELOG.md.
1010
# - Create "v0.1.x" git tag.
11-
version = "0.1.22"
11+
version = "0.1.23"
1212
authors = [
1313
"Tokio Contributors <[email protected]>",
1414
"Eliza Weisman <[email protected]>",

tracing-attributes/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Macro attributes for application-level tracing.
1818
[crates-badge]: https://img.shields.io/crates/v/tracing-attributes.svg
1919
[crates-url]: https://crates.io/crates/tracing-attributes
2020
[docs-badge]: https://docs.rs/tracing-attributes/badge.svg
21-
[docs-url]: https://docs.rs/tracing-attributes/0.1.22
21+
[docs-url]: https://docs.rs/tracing-attributes/0.1.23
2222
[docs-master-badge]: https://img.shields.io/badge/docs-master-blue
2323
[docs-master-url]: https://tracing-rs.netlify.com/tracing_attributes
2424
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
@@ -47,7 +47,7 @@ First, add this to your `Cargo.toml`:
4747

4848
```toml
4949
[dependencies]
50-
tracing-attributes = "0.1.22"
50+
tracing-attributes = "0.1.23"
5151
```
5252

5353

tracing-attributes/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//!
1717
//! ```toml
1818
//! [dependencies]
19-
//! tracing-attributes = "0.1.22"
19+
//! tracing-attributes = "0.1.23"
2020
//! ```
2121
//!
2222
//! The [`#[instrument]`][instrument] attribute can now be added to a function
@@ -52,7 +52,7 @@
5252
//! supported compiler version is not considered a semver breaking change as
5353
//! long as doing so complies with this policy.
5454
//!
55-
#![doc(html_root_url = "https://docs.rs/tracing-attributes/0.1.22")]
55+
#![doc(html_root_url = "https://docs.rs/tracing-attributes/0.1.23")]
5656
#![doc(
5757
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png",
5858
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"

0 commit comments

Comments
 (0)