-
Notifications
You must be signed in to change notification settings - Fork 113
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
2024: rustfmt sorting #332
Conversation
src/rust-2024/rustfmt-sorting.md
Outdated
|
||
## Migration | ||
|
||
The change can be applied automatically by running `cargo fmt` or `rustfmt` with the 2024 Edition. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If permissible, I'd like to avoid having to repeat the "here's how to run rustfmt" text in however many style/rustfmt pages we end up having.
Would it suffice to have this one-liner under our migration sections, and then just link out to the detailed instructions for how to do so, which will be added as part of #331?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linking out to #331 sounds good to me!
If you think it is best to have separate pages, that sounds good to me. Just FYI, eventually we'll reorder and group the pages in SUMMARY.md. Right now they are kinda in random order. |
This is to differentiate with rustfmt-raw-identifier-sorting.
We generally use sentence case for chapter titles.
54c94fd
to
7826b2c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I pushed a few fixups. I'm going to go ahead and merge. I'm not sure if there was anything else you wanted to do with this chapter. If so, please follow up with another PR.
Related tracking issues:
rust-lang/rust#123800
rust-lang/rust#123802
rendered
A topic we discussed back in #321 was how to bucket the various style/rustfmt related items, many of which are relatively small.
I know we have 3 separate tracking issues covering more detailed levels of the sorting change, but when I put myself in the position of a user consuming this edition guide I'm thinking it would be more intuitive to have a single page/section for the sorting changes