]> git.lizzy.rs Git - rust.git/commit
Add suggestions to `EXPLICIT_[INTO_]ITER_LOOP`
authorPascal Hertleif <killercup@gmail.com>
Sat, 28 Jan 2017 13:02:49 +0000 (14:02 +0100)
committerPascal Hertleif <killercup@gmail.com>
Sat, 28 Jan 2017 13:02:49 +0000 (14:02 +0100)
commit8cbf548f7e6cf5dea96acb836a7300e3e46f0764
tree19a0c392aec5d3744671647a9388f0d58df579e4
parentd825f194fdc1f1f9ccdf87bffdc79aacf98fc975
Add suggestions to `EXPLICIT_[INTO_]ITER_LOOP`

Also reduces the highlighted span to the expr containing the
`.[into_]iter()` call (so the suggestion is probably applicable by
rustfix.)

Fixes #1484
clippy_lints/src/loops.rs
tests/compile-fail/for_loop.rs