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

arbitrary_source_item_ordering: Make alphabetic ordering in module item groups optional #13718

Merged
merged 2 commits into from
Mar 9, 2025

Conversation

decryphe
Copy link
Contributor

From feedback to the arbitrary_source_item_ordering lint after its inclusion in clippy 1.82, making alphabetic ordering within module item groups has turned out to be the most requested improvement. With this improvement, it is possible to make the lint perform certain top-level structural checks on modules (e.g. use statements and module inclusions at the top), but still leaving everything else up to the developer.

Implements parts of the suggestions from #13675. A catch-all-group is still to be implemented.

changelog: [arbitrary_source_item_ordering]: Make alphabetic ordering in module item groups optional (off by default)

@rustbot
Copy link
Collaborator

rustbot commented Nov 22, 2024

r? @y21

rustbot has assigned @y21.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Nov 22, 2024
Copy link
Member

@y21 y21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the wait, this change looks good to me. I have one question but it's not a blocker (although it would be good to decide now so we wouldn't need to change the behavior of this configuration later and break users)

@bors
Copy link
Contributor

bors commented Dec 15, 2024

☔ The latest upstream changes (presumably 1dddeab) made this pull request unmergeable. Please resolve the merge conflicts.

@decryphe decryphe force-pushed the source-ordering-improvements branch 3 times, most recently from 9f4ba3c to 5b2f954 Compare January 16, 2025 14:27
@decryphe decryphe requested a review from y21 January 16, 2025 14:28
@decryphe decryphe force-pushed the source-ordering-improvements branch from 5b2f954 to 438cd30 Compare January 16, 2025 15:04
@decryphe decryphe force-pushed the source-ordering-improvements branch 7 times, most recently from b4673c2 to 058104f Compare March 3, 2025 15:25
@decryphe decryphe force-pushed the source-ordering-improvements branch from 058104f to c0d8704 Compare March 4, 2025 08:49
decryphe added 2 commits March 4, 2025 09:50
…ult: off)

From feedback to this lint after its inclusion in clippy 1.82, this has
turned out to be the most requested improvement. With this improvement,
it is possible to make the lint check certain top-level structural
checks on modules (e.g. use statements and module inclusions at the top),
but still leaving everything else up to the developer.
@decryphe decryphe force-pushed the source-ordering-improvements branch from c0d8704 to 5df6887 Compare March 4, 2025 08:50
Copy link
Member

@y21 y21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thank you for working on this!

@y21 y21 added this pull request to the merge queue Mar 9, 2025
Merged via the queue into rust-lang:master with commit 819f3c7 Mar 9, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants