Skip to content

False positive redundant_closure when using ref pattern in closure params #8466

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 2 commits into from
Feb 23, 2022

Conversation

tamaroning
Copy link
Contributor

fixes #8460
Fixed [redundant_closure] so that closures of which params bound as ref or ref mut doesn't trigger the lint.
(e.g. |ref x| some_expr doesn't trigger the lint.)
changelog: none

@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 Feb 23, 2022
@Manishearth
Copy link
Member

@bors r+

thanks!

@bors
Copy link
Contributor

bors commented Feb 23, 2022

📌 Commit 31b49b0 has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Feb 23, 2022

⌛ Testing commit 31b49b0 with merge 042892a...

@bors
Copy link
Contributor

bors commented Feb 23, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Manishearth
Pushing 042892a to master...

@bors bors merged commit 042892a into rust-lang:master Feb 23, 2022
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.

False positive redundant_closure when using ref pattern in closure params
4 participants