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

Move let_underscore_drop to restriction #9696

Closed
wants to merge 1 commit into from

Conversation

Alexendoo
Copy link
Member

@Alexendoo Alexendoo commented Oct 23, 2022

Because of things like #9314. let _ is considered the idiomatic way to ignore must_use: https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-must_use-attribute

changelog: [let_underscore_drop]: move to restriction

r? @flip1995

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 23, 2022
@Alexendoo Alexendoo force-pushed the let-underscore-drop branch from 08648d2 to b495d09 Compare October 23, 2022 11:57
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.

pedantic is a weird category for this lint, so moving it to restriction SGTM.

@flip1995
Copy link
Member

@bors r+

Thanks!

@bors
Copy link
Contributor

bors commented Oct 23, 2022

📌 Commit b495d09 has been approved by flip1995

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Oct 23, 2022

⌛ Testing commit b495d09 with merge 932688c...

bors added a commit that referenced this pull request Oct 23, 2022
Move `let_underscore_drop` to restriction

Because of things like #9314. `let _` is considered the idiomatic way to ignore `must_use`: https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-must_use-attribute

changelog: [`let_underscore_drop`]: move to restriction

r? `@flip1995`
@Alexendoo
Copy link
Member Author

@bors r-

I just remembered that this actually got uplifted, rust-lang/rust#97739, so I'll prepare a PR that does a rename instead

@Alexendoo Alexendoo closed this Oct 23, 2022
@flip1995
Copy link
Member

Ah and it wasn't deprecated in Clippy. Yeah, please remove the lint from Clippy then. Now this is no longer our problem :D

@Alexendoo Alexendoo deleted the let-underscore-drop branch October 23, 2022 12:22
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.

4 participants