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

2024: rustfmt sorting #332

Merged
merged 4 commits into from
Nov 18, 2024
Merged

Conversation

calebcartwright
Copy link
Member

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


## Migration

The change can be applied automatically by running `cargo fmt` or `rustfmt` with the 2024 Edition.
Copy link
Member Author

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?

Copy link
Contributor

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!

@ehuss
Copy link
Contributor

ehuss commented Nov 4, 2024

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.

Copy link
Contributor

@ehuss ehuss left a 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.

@ehuss ehuss enabled auto-merge November 18, 2024 19:43
@ehuss ehuss added this pull request to the merge queue Nov 18, 2024
Merged via the queue into rust-lang:master with commit 07766cb Nov 18, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants