-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Tracking Issue for Rust 2024: rustfmt use version sort #123800
Comments
@calebcartwright @traviscross Verifying: this is labeled |
I think we answered this in a more synchronous forum like one of our t-style meetings, but for posterity, yes that's correct |
Our `rust-toolchain` specifies `nightly-2024-05-02`. That one comes with `rustfmt` version 1.7. But our `rustfmt.toml` uses `style_edition = "2024"`; but `2024` was only added in version 1.8. So in this PR we update to a more recent nightly toolchain. Most of the changes in here are from our specified `rustfmt.toml` config actually applying. The main thing that's causing a lot of diff is [version sorting](rust-lang/rust#123800) of imports, which changes how letter case is handled for comparison. Fixes #297
@rustbot labels +S-tracking-ready-for-edition -I-style-nominated We reviewed this on the edition call. This is now ready for Rust 2024. Thanks to @calebcartwright and the rest of the rustfmt team and style team for pushing this forward. |
This is a tracking issue for the rustfmt / T-style work needed to use version sort order in Style Edition 2024.
About tracking issues
Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
style_edition
2024 rustfmt#6284Unresolved Questions
None.
Implementation history
style_edition
2024 rustfmt#6284cc @rust-lang/rustfmt @rust-lang/style @calebcartwright
The text was updated successfully, but these errors were encountered: