Skip to content

Commit faec406

Browse files
committed
Merge remote-tracking branch 'upstream/master' into subtree-push-nightly-2025-02-12
2 parents 58ba360 + 5619b64 commit faec406

File tree

165 files changed

+2157
-565
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+2157
-565
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
use std::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64};
4040
```
4141
[style guide's version sorting algorithm]: https://doc.rust-lang.org/nightly/style-guide/#sorting
42-
- When parsing rustfmt configurations fails, rustfmt will now include the path to the toml file in the erorr message [#6302](https://github.com/rust-lang/rustfmt/issues/6302)
42+
- When parsing rustfmt configurations fails, rustfmt will now include the path to the toml file in the error message [#6302](https://github.com/rust-lang/rustfmt/issues/6302)
4343

4444
### Added
4545
- rustfmt now formats trailing where clauses in type aliases [#5887](https://github.com/rust-lang/rustfmt/pull/5887)
@@ -133,7 +133,7 @@
133133
### Changed
134134

135135
- `hide_parse_errors` has been soft deprecated and it's been renamed to `show_parse_errors` [#5961](https://github.com/rust-lang/rustfmt/pull/5961).
136-
- 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)
136+
- The diff output produced by `rustfmt --check` is more compatible with editors that support navigating directly to line numbers [#5971](https://github.com/rust-lang/rustfmt/pull/5971)
137137
- 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).
138138

139139
[log crate]: https://crates.io/crates/log

Cargo.lock

Lines changed: 7 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ rustfmt-format-diff = []
3333
generic-simd = ["bytecount/generic-simd"]
3434

3535
[dependencies]
36-
annotate-snippets = { version = "0.9", features = ["color"] }
36+
annotate-snippets = { version = "0.11" }
3737
anyhow = "1.0"
3838
bytecount = "0.6.8"
3939
cargo_metadata = "0.18"

Configurations.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3062,7 +3062,9 @@ fn main() {
30623062

30633063
## `version`
30643064

3065-
This option is deprecated and has been replaced by [`style_edition`](#style_edition)
3065+
This option is deprecated and has been replaced by [`style_edition`](#style_edition).
3066+
`version = "One"` is equivalent to `style_edition = "(2015|2018|2021)"` and
3067+
`version = "Two"` is equivalent to `style_edition = "2024"`
30663068

30673069
- **Default value**: `One`
30683070
- **Possible values**: `One`, `Two`
@@ -3112,7 +3114,7 @@ Break comments to fit on the line
31123114

31133115
Note that no wrapping will happen if:
31143116
1. The comment is the start of a markdown header doc comment
3115-
2. An URL was found in the comment
3117+
2. A URL was found in the comment
31163118

31173119
- **Default value**: `false`
31183120
- **Possible values**: `true`, `false`

check_diff/Cargo.lock

Lines changed: 49 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

check_diff/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ edition = "2021"
99
clap = { version = "4.4.2", features = ["derive"] }
1010
tracing = "0.1.37"
1111
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
12-
[dev-dependencies]
1312
tempfile = "3"
13+
walkdir = "2.5.0"
14+
diffy = "0.4.0"

0 commit comments

Comments
 (0)