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

Fix bool_to_int_with_if false positive with if let #9714

Merged
merged 1 commit into from
Oct 29, 2022

Conversation

Alexendoo
Copy link
Member

@Alexendoo Alexendoo commented Oct 25, 2022

Fixes #9706

changelog: FP: [bool_to_int_with_if]: Now ignores if let statements

@rust-highfive
Copy link

r? @flip1995

(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 Oct 25, 2022
@bors
Copy link
Collaborator

bors commented Oct 29, 2022

☔ The latest upstream changes (presumably #9738) made this pull request unmergeable. Please resolve the merge conflicts.

Copy link
Member

@xFrednet xFrednet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once small nit and one question, otherwise looks good to me :)

tests/ui/bool_to_int_with_if.rs Outdated Show resolved Hide resolved
clippy_lints/src/bool_to_int_with_if.rs Show resolved Hide resolved
@xFrednet
Copy link
Member

r? @xFrednet

@rust-highfive rust-highfive assigned xFrednet and unassigned flip1995 Oct 29, 2022
@xFrednet
Copy link
Member

Looks good to me, thank you!

Lord Bors, would you please use your magic powers to merge this PR?

@bors
Copy link
Collaborator

bors commented Oct 29, 2022

📌 Commit ad5dfcd has been approved by xFrednet

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Oct 29, 2022

⌛ Testing commit ad5dfcd with merge cca9938...

@bors
Copy link
Collaborator

bors commented Oct 29, 2022

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

@bors bors merged commit cca9938 into rust-lang:master Oct 29, 2022
@Alexendoo Alexendoo deleted the bool-to-int-if-let branch October 29, 2022 12:34
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.

Incorrect code suggestion when using if-let expression
5 participants