-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Make restriction lint's use span_lint_and_then
(i -> p)
#13144
Make restriction lint's use span_lint_and_then
(i -> p)
#13144
Conversation
Is the plan to completely move away from these other I really liked |
That's a good question. The issue suggests the entire removal of these functions to have one unified way. I also think that rustc's diagnostic documentation is pretty good, which would make it easier for new contributors. For restriction lints, I think it makes highly sense to remove them. Lints like Now, I've kept the internal lint around, as I'm unsure, how motivated I am to migrate all of Clippy. These three PRs represent ~116 of our 700+ lints. Even if we create a migration lint it would take dedication. And rn I'm not sure if I'm committed enough for that. If we don't migrate all of Clippy, it would be better to keep the lint for consistency. |
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.
Looks good, just two small "formatting" nits.
f2c96f5
to
5cf3893
Compare
Very good catches! Thank you for taking the time =^.^= The last commit, should have resolved everything. |
Looks all good to me now! Want to squash the last commit or keep it? You can |
5cf3893
to
90c1963
Compare
And squashed :D Thank you for the quick feedback =^.^= Roses are red, |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
This migrates a few restriction lints to use
span_lint_and_then
. This change is motivated by #7797.I've also cleaned up some lint message. Mostly minor stuff. For example: suggestions with a longer message than
"try"
now useSuggestionStyle::ShowAlways
cc: #7797
brother PR of: #13136
changelog: none