Repository navigation
Open
Labels
C-tracking-issueCategory: tracking issue; a meta issue intended to track other issues or some kind of progressCategory: tracking issue; a meta issue intended to track other issues or some kind of progressSO-style_editionStable option: style_editionStable option: style_edition
Description
Tracking issue for the rustfmt specifics of implementing/supporting RFC 3338, Style Evolution
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 link to this issue
Steps
- Create new configuration option
style_edition - Soft deprecate
versionoption with auto-mapping to correspondingstyle_editionvalue - Add
--style-editionflag tocargo-fmtandrustfmt - Update configuration mechanism to support varying option availability, stability, and default values based on
style_edition - Update CLIs (
cargo-fmt&rustfmt) to support varying surface of option/arg availability and stability - Update configuration documentation approaches to delineate by style edition
Associated Issues/Discussions
- Design Discussion for
style_editionConfiguration in rustfmt #5650 - Design Discussion forstyle_edition
Unresolved Questions
- Should the rolling "vNext" variant of
style_editionbe made available on stable? I.e. the current latest formatting-stable version ofstyle_editionwould be2021, where2024would be analogous toversion=Two, so would2024only be available on nightly?
Implementation history
Reacted by Yacin Tmimi
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: tracking issue; a meta issue intended to track other issues or some kind of progressCategory: tracking issue; a meta issue intended to track other issues or some kind of progressSO-style_editionStable option: style_editionStable option: style_edition
Activity
stefnotch commentedon Feb 20, 2026
Just to confirm, the style edition configuration is still unstable. Is that correct?
While trying to update the information in
Configuration.md, we were told that this option is stable.#6654
ytmimi commentedon Mar 7, 2026
style_editionis stable. At least 2015, 2018, 2021, and 2024 variants are stable. The 2027 variant is currently unstable.stefnotch commentedon Mar 7, 2026
Oh then https://github.com/rust-lang/rustfmt/blob/main/Configurations.md#style_edition needs to be updated.
ytmimi commentedon Mar 8, 2026
PRs are welcome.