-
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
Use register_renamed
instead of register_removed
for uplifted lints
#7056
Conversation
r? @Manishearth (rust-highfive has picked a reviewer for you, use r? to override) |
/// **What it does:** Nothing. This lint has been deprecated. | ||
/// | ||
/// **Deprecation reason:** This lint has been uplifted to rustc and is now called | ||
/// `panic_fmt`. |
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.
This caught a bug - the lint is called non_fmt_panic
now.
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.
To fix CI failure search for the removed lints in CHANGELOG.md
and remove the brackets []
around them.
In theory we have a separate test file for renamed lints: rename.rs. But no one updated this file in a while, so keeping it in deprecated.rs
for now seems fine. I'll open an issue to update the rename.rs
test.
This still applies the lint, and also adds a structured suggestion to rename it.
Thanks, done. |
@bors r+ Thanks! |
📌 Commit 012f9d4 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
This still applies the lint, and also adds a structured suggestion to
rename it.
changelog: Use
register_renamed
instead ofregister_removed
for lints uplifted to rustc