Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bb5c437

Browse files
committedMar 30, 2022
Auto merge of #95458 - calebcartwright:sync-rustfmt-subtree, r=calebcartwright
Sync rustfmt subtree r? `@calebcartwright`
2 parents 3e75146 + 419df99 commit bb5c437

File tree

125 files changed

+2013
-235
lines changed

Some content is hidden

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

125 files changed

+2013
-235
lines changed
 

‎src/tools/rustfmt/.github/workflows/linux.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040
rustc -Vv
4141
cargo -V
4242
cargo build
43+
env:
44+
RUSTFLAGS: '-D warnings'
4345

4446
- name: test
4547
run: cargo test
48+
env:
49+
RUSTFLAGS: '-D warnings'

‎src/tools/rustfmt/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### Fixed
6+
7+
- Fixes issue where wrapped strings would be incorrectly indented in macro defs when `format_strings` was enabled [#4036](https://github.com/rust-lang/rustfmt/issues/4036)
8+
59
## [1.4.38] 2021-10-20
610

711
### Changed
@@ -57,6 +61,7 @@ Note this hit the rustup distributions prior to the v1.4.38 release as part of a
5761

5862
- New `One` variant added to `imports_granularity` configuration option which can be used to reformat all imports into a single use statement [#4669](https://github.com/rust-lang/rustfmt/issues/4669)
5963
- rustfmt will now skip files that are annotated with `@generated` at the top of the file [#3958](https://github.com/rust-lang/rustfmt/issues/3958)
64+
if `format_generated_files` option is set to `false` (by default `@generated` files are formatted)
6065
- New configuration option `hex_literal_case` that allows user to control the casing utilized for hex literals [PR #4903](https://github.com/rust-lang/rustfmt/pull/4903)
6166

6267
See the section on the configuration site for more information

0 commit comments

Comments
 (0)
Please sign in to comment.