Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 9748af8

Browse files
ytmimicalebcartwright
authored andcommitted
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.
1 parent 0737d55 commit 9748af8

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

CHANGELOG.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// It NFC-normalizes to ó, U+00F3 LATIN SMALL LETTER O WITH ACUTE.
1414
trait Foó: Bar {}
1515
```
16+
[unicode normalization form]: https://unicode.org/reports/tr15/
1617
- 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)
1718
```rust
1819
let range = 3. / 2. ..4.;
@@ -41,9 +42,12 @@
4142
}
4243
}
4344
```
44-
45-
[log crate]: https://crates.io/crates/log
46-
[unicode normalization form]: https://unicode.org/reports/tr15/
45+
- Output correct syntax for type ascription builtin [#6159](https://github.com/rust-lang/rustfmt/issues/6159)
46+
```rust
47+
fn main() {
48+
builtin # type_ascribe(10, usize)
49+
}
50+
```
4751

4852

4953
### Changed
@@ -52,6 +56,8 @@
5256
- 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)
5357
- 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).
5458

59+
[log crate]: https://crates.io/crates/log
60+
5561

5662
### Added
5763

@@ -66,15 +72,8 @@
6672
- Addressed clap deprecations output when running `cargo check --features clap/deprecated` [#6101](https://github.com/rust-lang/rustfmt/pull/6101)
6773
- Bumped bytecount `0.6.4` -> `0.6.8` to fix compilation issues with the `generic-simd` feature. See [bytecount#92] and [bytecount#93]
6874

69-
[bytecount#92]: https://github.com/llogiq/bytecount/pull/92
70-
[bytecount#93]: https://github.com/llogiq/bytecount/pull/93
71-
72-
- Output correct syntax for type ascription builtin [#6159](https://github.com/rust-lang/rustfmt/issues/6159)
73-
```rust
74-
fn main() {
75-
builtin # type_ascribe(10, usize)
76-
}
77-
```
75+
[bytecount#92]: https://github.com/llogiq/bytecount/pull/92
76+
[bytecount#93]: https://github.com/llogiq/bytecount/pull/93
7877

7978
## [1.7.0] 2023-10-22
8079

0 commit comments

Comments
 (0)