Skip to content

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Aug 30, 2022

Makes the lint emit in source order rather than whatever order the hash map happens to be in. This is currently blocking the sync into rustc.

changelog: None

* Emit the lint in source order
* Make suggestions with multiple traits be in source order rather than alphabetical
@rust-highfive
Copy link

r? @flip1995

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 30, 2022
@Jarcho Jarcho added the I-sync-blocker Issue: Prevents a change to be synced to rust-lang/rust label Aug 31, 2022
Copy link
Member

@dswij dswij left a comment

Choose a reason for hiding this comment

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

Change itself looks good to me. How does this issue cause the sync to fail?

|
LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
| ^^^^^^^
| ^^^^^
Copy link
Contributor Author

@Jarcho Jarcho Aug 31, 2022

Choose a reason for hiding this comment

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

Both this and the next warning were both emitted with the order depending on the order of a hash map. I guess there was a change recently that caused the order be reversed.

@dswij
Copy link
Member

dswij commented Aug 31, 2022

Thanks for the fix! @bors r+

@bors
Copy link
Contributor

bors commented Aug 31, 2022

📌 Commit 19ef04f has been approved by dswij

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Aug 31, 2022

⌛ Testing commit 19ef04f with merge f51aade...

@bors
Copy link
Contributor

bors commented Aug 31, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: dswij
Pushing f51aade to master...

@bors bors merged commit f51aade into rust-lang:master Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-sync-blocker Issue: Prevents a change to be synced to rust-lang/rust 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.

5 participants