|
1 | 1 | error: the variable `_index` is used as a loop counter.
|
2 |
| - --> $DIR/explicit_counter_loop.rs:6:15 |
| 2 | + --> $DIR/explicit_counter_loop.rs:6:5 |
3 | 3 | |
|
4 | 4 | LL | for _v in &vec {
|
5 |
| - | ^^^^ help: consider using: `for (_index, _v) in vec.iter().enumerate()` |
| 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:15 |
| 10 | + --> $DIR/explicit_counter_loop.rs:12:5 |
11 | 11 | |
|
12 | 12 | LL | for _v in &vec {
|
13 |
| - | ^^^^ help: consider using: `for (_index, _v) in vec.iter().enumerate()` |
| 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:15 |
| 16 | + --> $DIR/explicit_counter_loop.rs:17:5 |
17 | 17 | |
|
18 | 18 | LL | for _v in &mut vec {
|
19 |
| - | ^^^^^^^^ help: consider using: `for (_index, _v) in vec.iter_mut().enumerate()` |
| 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:15 |
| 22 | + --> $DIR/explicit_counter_loop.rs:22:5 |
23 | 23 | |
|
24 | 24 | LL | for _v in vec {
|
25 |
| - | ^^^ help: consider using: `for (_index, _v) in vec.into_iter().enumerate()` |
| 25 | + | ^^^^^^^^^^^^^ help: consider using: `for (_index, _v) in vec.into_iter().enumerate()` |
26 | 26 |
|
27 | 27 | error: the variable `count` is used as a loop counter.
|
28 |
| - --> $DIR/explicit_counter_loop.rs:61:19 |
| 28 | + --> $DIR/explicit_counter_loop.rs:61:9 |
29 | 29 | |
|
30 | 30 | LL | for ch in text.chars() {
|
31 |
| - | ^^^^^^^^^^^^ help: consider using: `for (count, ch) in text.chars().enumerate()` |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `for (count, ch) in text.chars().enumerate()` |
32 | 32 |
|
33 | 33 | error: the variable `count` is used as a loop counter.
|
34 |
| - --> $DIR/explicit_counter_loop.rs:72:19 |
| 34 | + --> $DIR/explicit_counter_loop.rs:72:9 |
35 | 35 | |
|
36 | 36 | LL | for ch in text.chars() {
|
37 |
| - | ^^^^^^^^^^^^ help: consider using: `for (count, ch) in text.chars().enumerate()` |
| 37 | + | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `for (count, ch) in text.chars().enumerate()` |
38 | 38 |
|
39 | 39 | error: the variable `count` is used as a loop counter.
|
40 |
| - --> $DIR/explicit_counter_loop.rs:130:19 |
| 40 | + --> $DIR/explicit_counter_loop.rs:130:9 |
41 | 41 | |
|
42 | 42 | LL | for _i in 3..10 {
|
43 |
| - | ^^^^^ help: consider using: `for (count, _i) in 3..10.enumerate()` |
| 43 | + | ^^^^^^^^^^^^^^^ help: consider using: `for (count, _i) in 3..10.enumerate()` |
44 | 44 |
|
45 | 45 | error: aborting due to 7 previous errors
|
46 | 46 |
|
0 commit comments