-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-edition-2024Area: The 2024 editionArea: The 2024 editionA-rustfmtArea: RustfmtArea: RustfmtC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-ready-for-editionStatus: This issue is ready for inclusion in the edition.Status: This issue is ready for inclusion in the edition.T-styleRelevant to the style team, which will review and decide on the PR/issue.Relevant to the style team, which will review and decide on the PR/issue.
Description
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
- Implement in nightly Rust 2024.
- Add documentation to the edition guide.
- Add formatting for new syntax to the style guide.
- Ensure ready for Rust 2024 stabilization.
Unresolved Questions
None.
Implementation history
- Implement version-sort for imports in
style_edition
2024 rustfmt#6284 - apply 2024 version sort algorithm to mods rustfmt#6368
- Consider using human/natural sort order style-team#143
- Use version-sorting for all sorting #115046
- rustfmt should use natural sorting rustfmt#4381
- Use versionsort for everything that's auto-reordered by name rustfmt#3764
cc @rust-lang/rustfmt @rust-lang/style @calebcartwright
Metadata
Metadata
Assignees
Labels
A-edition-2024Area: The 2024 editionArea: The 2024 editionA-rustfmtArea: RustfmtArea: RustfmtC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-ready-for-editionStatus: This issue is ready for inclusion in the edition.Status: This issue is ready for inclusion in the edition.T-styleRelevant to the style team, which will review and decide on the PR/issue.Relevant to the style team, which will review and decide on the PR/issue.