-
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
Simplify lint deprecation #13180
Simplify lint deprecation #13180
Conversation
32f87e0
to
490c44a
Compare
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.
LGTM overall. I still have to review the update_lints
changes (I ran out of time for today).
@xFrednet can you please review the changes in index.html
. I have no idea anymore what's going on there 😅
clippy_lints/src/deprecated_lints.rs
Outdated
/// | ||
/// ### Deprecation reason | ||
/// This lint has been superseded by #[must_use] in rustc. | ||
("clippy::unsafe_vector_initialization", "the suggested alternative had substantially different behavior"), |
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.
behavior->perf characteristics to keep the old wording?
490c44a
to
40d380c
Compare
☔ The latest upstream changes (presumably #13178) made this pull request unmergeable. Please resolve the merge conflicts. |
85b8e35
to
ecda54a
Compare
|
3a3d07f
to
829fd0b
Compare
☔ The latest upstream changes (presumably #13182) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
@flip1995 Sure!
The changes to metadata_collector.rs
and index.html
both look good to me :D
I've also checked the rendered output, and it all works as expected!
I just noticed that after the rebase the |
No problem at all, I like to roughly know what's going on in that file anyways =^.^= |
Remove legacy deprecations. Remove "View Source" link for deprecated lints.
bf6ca9a
to
08c1404
Compare
08c1404
to
c2186e1
Compare
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.
Thanks!
@bors r+ (assuming CI will pass) |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
A couple of small changes:
clippy::
for all lints (deprecated or not) when they're used without it. It wouldn't be a problem to add them back in.This came up as part of separating the internal lints into their own crate. Both the metadata collector and the lint registration code needs access to the deprecated and renamed lists. This form lets all the deprecations be a separate crate.
r? @flip1995
changelog: none