File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ pub(super) fn check<'tcx>(
95
95
cx,
96
96
SINGLE_ELEMENT_LOOP ,
97
97
arg. span ,
98
- format ! ( "This loops only once with {pat_snip} being {range_expr}" ) . as_str ( ) ,
98
+ format ! ( "this loops only once with {pat_snip} being {range_expr}" ) . as_str ( ) ,
99
99
"did you mean to iterate over the range instead?" ,
100
100
sugg. to_string ( ) ,
101
101
Applicability :: Unspecified ,
Original file line number Diff line number Diff line change @@ -32,25 +32,25 @@ LL + dbg!(item);
32
32
LL + }
33
33
|
34
34
35
- error: This loops only once with item being 0..5
35
+ error: this loops only once with item being 0..5
36
36
--> $DIR/single_element_loop.rs:16:17
37
37
|
38
38
LL | for item in &[0..5] {
39
39
| ^^^^^^^ help: did you mean to iterate over the range instead?: `0..5`
40
40
41
- error: This loops only once with item being 0..5
41
+ error: this loops only once with item being 0..5
42
42
--> $DIR/single_element_loop.rs:20:17
43
43
|
44
44
LL | for item in [0..5].iter_mut() {
45
45
| ^^^^^^^^^^^^^^^^^ help: did you mean to iterate over the range instead?: `0..5`
46
46
47
- error: This loops only once with item being 0..5
47
+ error: this loops only once with item being 0..5
48
48
--> $DIR/single_element_loop.rs:24:17
49
49
|
50
50
LL | for item in [0..5] {
51
51
| ^^^^^^ help: did you mean to iterate over the range instead?: `0..5`
52
52
53
- error: This loops only once with item being 0..5
53
+ error: this loops only once with item being 0..5
54
54
--> $DIR/single_element_loop.rs:28:17
55
55
|
56
56
LL | for item in [0..5].into_iter() {
You can’t perform that action at this time.
0 commit comments