Skip to content

Fix formatting for removed lints #81135

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

Merged
merged 1 commit into from
Jan 22, 2021
Merged

Fix formatting for removed lints #81135

merged 1 commit into from
Jan 22, 2021

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Jan 17, 2021

  • Don't add backticks for the reason a lint was removed. This is almost
    never a code block, and when it is the backticks should be in the reason
    itself.
  • Don't assume clippy is the only tool that needs to be checked for
    backwards compatibility

I split this out of #80527 because it kept causing tests to fail, and it's a good change to have anyway.

r? @flip1995

@jyn514 jyn514 added A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. A-diagnostics Area: Messages for errors, warnings, and lints labels Jan 17, 2021
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 17, 2021
@jyn514
Copy link
Member Author

jyn514 commented Jan 17, 2021

err I'm not sure if you have r? permissions - here they are just in case:

@bors delegate=flip1995

@bors
Copy link
Collaborator

bors commented Jan 17, 2021

✌️ @flip1995 can now approve this pull request

@rust-log-analyzer

This comment has been minimized.

- Don't add backticks for the reason a lint was removed. This is almost
never a code block, and when it is the backticks should be in the reason
itself.
- Don't assume clippy is the only tool that needs to be checked for
backwards compatibility
@flip1995
Copy link
Member

flip1995 commented Jan 17, 2021

Clippy also has tests for this in src/tools/clippy/tests/ui/deprecated*.rs. So you will have to adapt those tests too.


I don't have r+ rights here, but I generally approve this change. Always wondered why those backticks were there.

@jyn514
Copy link
Member Author

jyn514 commented Jan 17, 2021

@bors r=flip1995

@bors
Copy link
Collaborator

bors commented Jan 17, 2021

📌 Commit 77b5ced has been approved by flip1995

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 17, 2021
m-ou-se added a commit to m-ou-se/rust that referenced this pull request Jan 20, 2021
Fix formatting for removed lints

- Don't add backticks for the reason a lint was removed. This is almost
never a code block, and when it is the backticks should be in the reason
itself.
- Don't assume clippy is the only tool that needs to be checked for
backwards compatibility

I split this out of rust-lang#80527 because it kept causing tests to fail, and it's a good change to have anyway.

r? `@flip1995`
@bors
Copy link
Collaborator

bors commented Jan 20, 2021

⌛ Testing commit 77b5ced with merge 894f85d1d45998a3413d0bd0faca3cea02d099da...

@bors
Copy link
Collaborator

bors commented Jan 20, 2021

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jan 20, 2021
@jyn514
Copy link
Member Author

jyn514 commented Jan 22, 2021

@bors retry

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 22, 2021
@bors
Copy link
Collaborator

bors commented Jan 22, 2021

⌛ Testing commit 77b5ced with merge 25f39fe...

@bors
Copy link
Collaborator

bors commented Jan 22, 2021

☀️ Test successful - checks-actions
Approved by: flip1995
Pushing 25f39fe to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jan 22, 2021
@bors bors merged commit 25f39fe into rust-lang:master Jan 22, 2021
@rustbot rustbot added this to the 1.51.0 milestone Jan 22, 2021
@flip1995 flip1995 deleted the no-backticks branch January 22, 2021 09:13
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 30, 2021
Fix formatting for removed lints

- Don't add backticks for the reason a lint was removed. This is almost
never a code block, and when it is the backticks should be in the reason
itself.
- Don't assume clippy is the only tool that needs to be checked for
backwards compatibility

I split this out of rust-lang#80527 because it kept causing tests to fail, and it's a good change to have anyway.

r? `@flip1995`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants