Skip to content
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 style_edition #5720

Open
6 tasks
calebcartwright opened this issue Mar 22, 2023 · 0 comments
Open
6 tasks

Tracking issue for style_edition #5720

calebcartwright opened this issue Mar 22, 2023 · 0 comments

Comments

@calebcartwright
Copy link
Member

calebcartwright commented Mar 22, 2023

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 version option with auto-mapping to corresponding style_edition value
  • Add --style-edition flag to cargo-fmt and rustfmt
  • 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

Unresolved Questions

  • Should the rolling "vNext" variant of style_edition be made available on stable? I.e. the current latest formatting-stable version of style_edition would be 2021, where 2024 would be analogous to version=Two, so would 2024 only be available on nightly?

Implementation history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant