-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
stable_sort_primitive: print the type that is being sorted in the lint message #5935
Conversation
r? @flip1995 (rust_highfive has picked a reviewer for you, use r? to override) |
94b65d7
to
331e07b
Compare
@@ -111,9 +112,10 @@ impl LateLintPass<'_> for StableSortPrimitive { | |||
STABLE_SORT_PRIMITIVE, | |||
expr.span, | |||
format!( | |||
"used {} instead of {}", | |||
"used {} instead of {} to sort primitive type {}", |
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.
NIT:
"used {} instead of {} to sort primitive type {}", | |
"used {} instead of {} to sort primitive type `{}`", |
r=me with this change and reference files updated.
331e07b
to
e9964f2
Compare
@bors r=flip1995 |
📌 Commit e9964f2 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
changelog: stable_sort_primitive: print the type that is being sorted in the lint message