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.
This commit is contained in:
Yacin Tmimi 2024-06-18 16:55:56 -04:00 committed by Caleb Cartwright
parent 0737d553ed
commit 9748af80c6

View File

@ -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
@ -69,13 +75,6 @@
[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)
}
```
## [1.7.0] 2023-10-22
### Fixed