Skip to content
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

Merged
merged 1 commit into from
Apr 9, 2021

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Apr 9, 2021

This still applies the lint, and also adds a structured suggestion to
rename it.

changelog: Use register_renamed instead of register_removed for lints uplifted to rustc

@rust-highfive
Copy link

r? @Manishearth

(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 Apr 9, 2021
/// **What it does:** Nothing. This lint has been deprecated.
///
/// **Deprecation reason:** This lint has been uplifted to rustc and is now called
/// `panic_fmt`.
Copy link
Member Author

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.

Copy link
Member

@flip1995 flip1995 left a 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.
@jyn514
Copy link
Member Author

jyn514 commented Apr 9, 2021

Thanks, done.

@flip1995
Copy link
Member

flip1995 commented Apr 9, 2021

@bors r+

Thanks!

@bors
Copy link
Contributor

bors commented Apr 9, 2021

📌 Commit 012f9d4 has been approved by flip1995

@bors
Copy link
Contributor

bors commented Apr 9, 2021

⌛ Testing commit 012f9d4 with merge f7c2c44...

@bors
Copy link
Contributor

bors commented Apr 9, 2021

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

@bors bors merged commit f7c2c44 into rust-lang:master Apr 9, 2021
@jyn514 jyn514 deleted the register-renamed branch April 9, 2021 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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