]> git.lizzy.rs Git - rust.git/commit
Fix a FP in `explicit_counter_loop`
authorrail <12975677+rail-rain@users.noreply.github.com>
Wed, 10 Jun 2020 02:05:32 +0000 (14:05 +1200)
committerrail <12975677+rail-rain@users.noreply.github.com>
Tue, 22 Sep 2020 20:15:44 +0000 (08:15 +1200)
commit5e393c7747d081c45414060f81016e9ea3cb961f
treef23aa5457eb41c7590e0b269b41a8641d9767593
parent29b12f22fc55da265f58b1bdf851bd69f60bf9a5
Fix a FP in `explicit_counter_loop`

Fix a false positive in `explicit_counter_loop` where the loop counter is used after incremented,
adjust the test so that counters are incremented at the end of the loop
and add the test for this false positive.
clippy_lints/src/loops.rs
tests/ui/explicit_counter_loop.rs