8

Github while_immutable_cond: check condition for mutation by llogiq · Pull Reque...

 3 years ago
source link: https://github.com/rust-lang/rust-clippy/pull/7144
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Collaborator

llogiq commented 8 days ago

edited by flip1995

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK