Skip to content

Sort the first group in StdExternalCrate import grouping by their subset relation#6548

Open
MonterraByte wants to merge 1 commit into
rust-lang:mainfrom
MonterraByte:std-group-order
Open

Sort the first group in StdExternalCrate import grouping by their subset relation#6548
MonterraByte wants to merge 1 commit into
rust-lang:mainfrom
MonterraByte:std-group-order

Conversation

@MonterraByte
Copy link
Copy Markdown

Closes #6290.

…set relation

`core` is a subset of `alloc`, and `alloc` is a subset of `std`.
This changes the ordering logic so that imports from `core` are placed
first, imports from `alloc` second, and imports from `std` last.
@jieyouxu jieyouxu added S-waiting-on-review Status: awaiting review from the assignee but also interested parties. and removed pr-not-reviewed labels Feb 21, 2026
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.

prefer core-alloc-std to alloc-core-std when reordering standard libraries imports

3 participants