Skip to content

Commit ebef91d

Browse files
author
rustfmt bot
committed
Merge remote-tracking branch 'origin/subtree_push_automation' into subtree-push-nightly-2025-02-12
2 parents 58ba360 + 34f5a5e commit ebef91d

File tree

167 files changed

+2540
-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.

167 files changed

+2540
-565
lines changed

.github/workflows/subtree_push.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Git Subtree Push
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
rustlang_rust_url:
6+
description: 'rust-lang/rust repository URL'
7+
default: 'https://github.com/rust-lang/rust'
8+
required: true
9+
10+
jobs:
11+
subtree-push:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: checkout
16+
uses: actions/checkout@v4
17+
with:
18+
# 0 indicates all history for all branches and tags.
19+
# https://github.com/actions/checkout?tab=readme-ov-file#fetch-all-history-for-all-tags-and-branches
20+
# Grabbing everything should help us avoid issues where `git commit --no-ff` complains that
21+
# it can't merge unrelated histories.
22+
fetch-depth: 0
23+
24+
# Based on https://github.com/rust-lang/rustup/issues/3409
25+
# rustup should already be installed in GitHub Actions.
26+
- name: install current toolchain with rustup
27+
run: |
28+
CURRENT_TOOLCHAIN=$(cut -d ' ' -f3 <<< $(cat rust-toolchain | grep "channel =") | tr -d '"')
29+
rustup install $CURRENT_TOOLCHAIN --no-self-update
30+
31+
- name: Setup Rustfmt Bot Git Details
32+
run: |
33+
git config user.name "rustfmt bot"
34+
git config user.email "[email protected]"
35+
36+
- name: subtree-push
37+
env:
38+
# Need to set the `GH_TOKEN` env variable so we can use the GitHub CLI in `/ci/subtree_sync.sh`
39+
GH_TOKEN: ${{ github.token }}
40+
run: ${GITHUB_WORKSPACE}/ci/subtree_sync.sh subtree-push ${{ inputs.rustlang_rust_url }}

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)