From 9748af80c60a03deb79d430ebe6e6fea037ecb03 Mon Sep 17 00:00:00 2001 From: Yacin Tmimi Date: Tue, 18 Jun 2024 16:55:56 -0400 Subject: [PATCH] reorder link reference definitions and one changelog entry Moved the link reference definitions closer to where they were being used and moved the `type ascription` formatting fix to the correct section. --- CHANGELOG.md | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a96fb29da76..2ee07a02b7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ // It NFC-normalizes to ó, U+00F3 LATIN SMALL LETTER O WITH ACUTE. trait Foó: Bar {} ``` + [unicode normalization form]: https://unicode.org/reports/tr15/ - Ensure a space is added to a range expression, when the right hand side of the range expression is a binary expression that ends with a trailing period [#6059](https://github.com/rust-lang/rustfmt/issues/6059) ```rust let range = 3. / 2. ..4.; @@ -41,9 +42,12 @@ } } ``` - -[log crate]: https://crates.io/crates/log -[unicode normalization form]: https://unicode.org/reports/tr15/ +- Output correct syntax for type ascription builtin [#6159](https://github.com/rust-lang/rustfmt/issues/6159) + ```rust + fn main() { + builtin # type_ascribe(10, usize) + } + ``` ### Changed @@ -52,6 +56,8 @@ - The diff output produced by `rustfmt --check` is more compatable with editors that support navigating directly to line numbers [#5971](https://github.com/rust-lang/rustfmt/pull/5971) - When using `version=Two`, the `trace!` macro from the [log crate] is now formatted similarly to `debug!`, `info!`, `warn!`, and `error!` [#5987](https://github.com/rust-lang/rustfmt/issues/5987). + [log crate]: https://crates.io/crates/log + ### Added @@ -66,15 +72,8 @@ - Addressed clap deprecations output when running `cargo check --features clap/deprecated` [#6101](https://github.com/rust-lang/rustfmt/pull/6101) - Bumped bytecount `0.6.4` -> `0.6.8` to fix compilation issues with the `generic-simd` feature. See [bytecount#92] and [bytecount#93] -[bytecount#92]: https://github.com/llogiq/bytecount/pull/92 -[bytecount#93]: https://github.com/llogiq/bytecount/pull/93 - -- Output correct syntax for type ascription builtin [#6159](https://github.com/rust-lang/rustfmt/issues/6159) - ```rust - fn main() { - builtin # type_ascribe(10, usize) - } - ``` + [bytecount#92]: https://github.com/llogiq/bytecount/pull/92 + [bytecount#93]: https://github.com/llogiq/bytecount/pull/93 ## [1.7.0] 2023-10-22