Skip to content

Commit 7515d9c

Browse files
committed
Update test output for mut_range_bound
1 parent 8fbf75e commit 7515d9c

File tree

1 file changed

+36
-11
lines changed

1 file changed

+36
-11
lines changed

tests/ui/mut_range_bound.stderr

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,59 @@
1-
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
2-
--> $DIR/mut_range_bound.rs:16:9
1+
error: attempt to mutate range bound within loop
2+
--> $DIR/mut_range_bound.rs:8:9
33
|
44
LL | m = 5;
55
| ^
66
|
77
= note: `-D clippy::mut-range-bound` implied by `-D warnings`
8+
= note: the range of the loop is unchanged
89

9-
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
10-
--> $DIR/mut_range_bound.rs:23:9
10+
error: attempt to mutate range bound within loop
11+
--> $DIR/mut_range_bound.rs:15:9
1112
|
1213
LL | m *= 2;
1314
| ^
15+
|
16+
= note: the range of the loop is unchanged
1417

15-
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
16-
--> $DIR/mut_range_bound.rs:31:9
18+
error: attempt to mutate range bound within loop
19+
--> $DIR/mut_range_bound.rs:23:9
1720
|
1821
LL | m = 5;
1922
| ^
23+
|
24+
= note: the range of the loop is unchanged
2025

21-
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
22-
--> $DIR/mut_range_bound.rs:32:9
26+
error: attempt to mutate range bound within loop
27+
--> $DIR/mut_range_bound.rs:24:9
2328
|
2429
LL | n = 7;
2530
| ^
31+
|
32+
= note: the range of the loop is unchanged
2633

27-
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
28-
--> $DIR/mut_range_bound.rs:46:22
34+
error: attempt to mutate range bound within loop
35+
--> $DIR/mut_range_bound.rs:38:22
2936
|
3037
LL | let n = &mut m; // warning
3138
| ^
39+
|
40+
= note: the range of the loop is unchanged
41+
42+
error: attempt to mutate range bound within loop
43+
--> $DIR/mut_range_bound.rs:70:9
44+
|
45+
LL | m = 2; // warning because it is not immediately followed by break
46+
| ^
47+
|
48+
= note: the range of the loop is unchanged
49+
50+
error: attempt to mutate range bound within loop
51+
--> $DIR/mut_range_bound.rs:79:13
52+
|
53+
LL | n = 1; // FIXME: warning because is is not immediately followed by break
54+
| ^
55+
|
56+
= note: the range of the loop is unchanged
3257

33-
error: aborting due to 5 previous errors
58+
error: aborting due to 7 previous errors
3459

0 commit comments

Comments
 (0)