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

while_immutable_cond: check condition for mutation #7144

Merged
merged 1 commit into from
Apr 30, 2021

Conversation

llogiq
Copy link
Contributor

@llogiq llogiq commented Apr 29, 2021

This fixes #6689 by also checking the bindings mutated in the condition, whereas it was previously only checked in the loop body.


changelog: Fix FP in [while_immutable_cond] where mutation in the loop variable wasn't picked up.

@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 Apr 29, 2021
@flip1995
Copy link
Member

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented Apr 30, 2021

📌 Commit 63425de has been approved by flip1995

@bors
Copy link
Collaborator

bors commented Apr 30, 2021

⌛ Testing commit 63425de with merge a300b0e...

@bors
Copy link
Collaborator

bors commented Apr 30, 2021

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

@bors bors merged commit a300b0e into master Apr 30, 2021
@llogiq llogiq deleted the while_immutable_mut_cond branch April 30, 2021 15:26
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.

Possible while_immutable_condition false positive
4 participants