-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 #92426
Sync rustfmt subtree #92426
Conversation
Although the implementation is slightly different than the original PR, the general idea is the same. After collecting all modules we want to exclude formatting those that contain the #![rustfmt::skip] attribute.
Fixes 5066 When a struct pattern that contained a ".." was formatted, it was assumed that a trailing comma should always be added if the struct fields weren't formatted vertically. Now, a trailing comma is only added if not already included in the reformatted struct fields.
By changing `as_str()` to take `&self` instead of `self`, we can just return `&str`. We're still lying about lifetimes, but it's a smaller lie than before, where `SymbolStr` contained a (fake) `&'static str`!
…021-12-19 Subtree sync
Fixes 5151 Details about the qualified path are now passed along so that rustfmt can include them when formatting struct literals.
This is a backport of rust-lang#4124. Fixes rust-lang#4109
@bors r+ p=1 subtree update, with a larger than usual diff, and contains some changes that are a minor blocker elsewhere |
📌 Commit 521fdcb has been approved by |
⌛ Testing commit 521fdcb with merge ecc9887fc6eb2d4e4ecd55d5a1c9a4b3f4d41f01... |
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
☀️ Test successful - checks-actions |
Finished benchmarking commit (a09f775): 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 |
r? @ghost
Mostly refactoring and a few minor lint fixes, along with a couple small bug fixes