-
Notifications
You must be signed in to change notification settings - Fork 13.3k
sync rustfmt subtree #90680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sync rustfmt subtree #90680
Conversation
* Add Together option to group_imports * Rename option to One * Rename files from Together to One
…e-sync sync subtree
Resolves 5038 rust-lang/rust builds now document rustfmt (rust-lang#87119). The build process is updated with doc checks to ensure that rustfmt doesn't introduce warnings. Warnings are treated as hard errors in rust-lang/rust and won't show until bors tests the changes (refs rust-lang#90087).
Resolves 5033 Trailing comments at the end of the root Module were removed because the module span did not extend until the end of the file. The root Module's span now encompasses the entire file, which ensures that no comments are lost when using ``#![rustfmt::skip]``
Remove comma splice
* Document RUSTFMT env var * Move documentation up * Apply suggestions from code review Co-authored-by: Caleb Cartwright <[email protected]> * Fix accedental removal Co-authored-by: Caleb Cartwright <[email protected]> # Conflicts: # README.md
resolves 5012 resolves 4850 This behavior was noticed when using the ``trailing_comma = "Never"`` configuration option (5012). This behavior was also noticed when using default configurations (4850). rustfmt would add a trailing space to where clause bounds that had an empty right hand side. Now no trailing space is added to the end of these where clause bounds.
# Conflicts: # src/rustfmt/main.rs
TraitKind -> Trait TyAliasKind -> TyAlias ImplKind -> Impl FnKind -> Fn All `*Kind`s in AST are supposed to be enums. Tuple structs are converted to braced structs for the types above, and fields are reordered in syntactic order. Also, mutable AST visitor now correctly visit spans in defaultness, unsafety, impl polarity and constness.
Some changes occurred in src/tools/rustfmt. |
(rust-highfive has picked a reviewer for you, use r? to override) |
This diff had merge conflicts on both sides of the sync, and there's a reasonable chance of more if this sits for too long which would require starting the sync over given the inability to rebase with subtrees @bors r+ p=1 |
📌 Commit 30fb124 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (b307481): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
No description provided.