|
1 | 1 | error: the variable `_index` is used as a loop counter.
|
2 |
| - --> $DIR/explicit_counter_loop.rs:6:5 |
| 2 | + --> $DIR/explicit_counter_loop.rs:8:5 |
3 | 3 | |
|
4 | 4 | LL | for _v in &vec {
|
5 | 5 | | ^^^^^^^^^^^^^^ help: consider using: `for (_index, _v) in vec.iter().enumerate()`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::explicit-counter-loop` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: the variable `_index` is used as a loop counter.
|
10 |
| - --> $DIR/explicit_counter_loop.rs:12:5 |
| 10 | + --> $DIR/explicit_counter_loop.rs:14:5 |
11 | 11 | |
|
12 | 12 | LL | for _v in &vec {
|
13 | 13 | | ^^^^^^^^^^^^^^ help: consider using: `for (_index, _v) in vec.iter().enumerate()`
|
14 | 14 |
|
15 | 15 | error: the variable `_index` is used as a loop counter.
|
16 |
| - --> $DIR/explicit_counter_loop.rs:17:5 |
| 16 | + --> $DIR/explicit_counter_loop.rs:19:5 |
17 | 17 | |
|
18 | 18 | LL | for _v in &mut vec {
|
19 | 19 | | ^^^^^^^^^^^^^^^^^^ help: consider using: `for (_index, _v) in vec.iter_mut().enumerate()`
|
20 | 20 |
|
21 | 21 | error: the variable `_index` is used as a loop counter.
|
22 |
| - --> $DIR/explicit_counter_loop.rs:22:5 |
| 22 | + --> $DIR/explicit_counter_loop.rs:24:5 |
23 | 23 | |
|
24 | 24 | LL | for _v in vec {
|
25 | 25 | | ^^^^^^^^^^^^^ help: consider using: `for (_index, _v) in vec.into_iter().enumerate()`
|
26 | 26 |
|
| 27 | +error: the variable `_index` is used as a loop counter. |
| 28 | + --> $DIR/explicit_counter_loop.rs:30:5 |
| 29 | + | |
| 30 | +LL | for _v in path.iter() { |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `for (_index, _v) in path.iter().enumerate()` |
| 32 | + |
| 33 | +error: the variable `_index` is used as a loop counter. |
| 34 | + --> $DIR/explicit_counter_loop.rs:36:5 |
| 35 | + | |
| 36 | +LL | for _v in pathbuf.iter() { |
| 37 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `for (_index, _v) in pathbuf.iter().enumerate()` |
| 38 | + |
27 | 39 | error: the variable `count` is used as a loop counter.
|
28 |
| - --> $DIR/explicit_counter_loop.rs:61:9 |
| 40 | + --> $DIR/explicit_counter_loop.rs:75:9 |
29 | 41 | |
|
30 | 42 | LL | for ch in text.chars() {
|
31 | 43 | | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `for (count, ch) in text.chars().enumerate()`
|
32 | 44 |
|
33 | 45 | error: the variable `count` is used as a loop counter.
|
34 |
| - --> $DIR/explicit_counter_loop.rs:72:9 |
| 46 | + --> $DIR/explicit_counter_loop.rs:86:9 |
35 | 47 | |
|
36 | 48 | LL | for ch in text.chars() {
|
37 | 49 | | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `for (count, ch) in text.chars().enumerate()`
|
38 | 50 |
|
39 | 51 | error: the variable `count` is used as a loop counter.
|
40 |
| - --> $DIR/explicit_counter_loop.rs:130:9 |
| 52 | + --> $DIR/explicit_counter_loop.rs:144:9 |
41 | 53 | |
|
42 | 54 | LL | for _i in 3..10 {
|
43 | 55 | | ^^^^^^^^^^^^^^^ help: consider using: `for (count, _i) in (3..10).enumerate()`
|
44 | 56 |
|
45 |
| -error: aborting due to 7 previous errors |
| 57 | +error: aborting due to 9 previous errors |
46 | 58 |
|
0 commit comments