unify checks into single visitor, fix block walk

This commit is contained in:
Andre Bogus 2017-08-03 00:41:46 +02:00
parent 3b7f3dc8e7
commit 76ca4dca85
2 changed files with 92 additions and 84 deletions

View file

@ -104,10 +104,10 @@ error: empty `loop {}` detected. You may want to either use `panic!()` or add `s
= note: `-D empty-loop` implied by `-D warnings`
error: this loop could be written as a `for` loop
--> while_loop.rs:177:9
--> $DIR/while_loop.rs:183:9
|
177 | / while let Some(v) = y.next() {
178 | | }
183 | / while let Some(v) = y.next() { // use a for loop here
184 | | }
| |_________^ help: try: `for v in y { .. }`
error: aborting due to 11 previous errors