11error: indexing into a slice multiple times without an `assert`
2- --> tests/ui/missing_asserts_for_indexing_unfixable.rs:4 :5
2+ --> tests/ui/missing_asserts_for_indexing_unfixable.rs:5 :5
33 |
44LL | v[0] + v[1] + v[2] + v[3] + v[4]
55 | ^^^^ ^^^^ ^^^^ ^^^^ ^^^^
@@ -10,7 +10,7 @@ LL | v[0] + v[1] + v[2] + v[3] + v[4]
1010 = help: to override `-D warnings` add `#[allow(clippy::missing_asserts_for_indexing)]`
1111
1212error: indexing into a slice multiple times without an `assert`
13- --> tests/ui/missing_asserts_for_indexing_unfixable.rs:9 :13
13+ --> tests/ui/missing_asserts_for_indexing_unfixable.rs:10 :13
1414 |
1515LL | let _ = v[0];
1616 | ^^^^
@@ -21,7 +21,7 @@ LL | let _ = v[1..4];
2121 = help: consider asserting the length before indexing: `assert!(v.len() > 3);`
2222
2323error: indexing into a slice multiple times without an `assert`
24- --> tests/ui/missing_asserts_for_indexing_unfixable.rs:16 :13
24+ --> tests/ui/missing_asserts_for_indexing_unfixable.rs:17 :13
2525 |
2626LL | let a = v[0];
2727 | ^^^^
@@ -34,55 +34,55 @@ LL | let c = v[2];
3434 = help: consider asserting the length before indexing: `assert!(v.len() > 2);`
3535
3636error: indexing into a slice multiple times without an `assert`
37- --> tests/ui/missing_asserts_for_indexing_unfixable.rs:25 :13
37+ --> tests/ui/missing_asserts_for_indexing_unfixable.rs:26 :13
3838 |
3939LL | let _ = v1[0] + v1[12];
4040 | ^^^^^ ^^^^^^
4141 |
4242 = help: consider asserting the length before indexing: `assert!(v1.len() > 12);`
4343
4444error: indexing into a slice multiple times without an `assert`
45- --> tests/ui/missing_asserts_for_indexing_unfixable.rs:27 :13
45+ --> tests/ui/missing_asserts_for_indexing_unfixable.rs:28 :13
4646 |
4747LL | let _ = v2[5] + v2[15];
4848 | ^^^^^ ^^^^^^
4949 |
5050 = help: consider asserting the length before indexing: `assert!(v2.len() > 15);`
5151
5252error: indexing into a slice multiple times without an `assert`
53- --> tests/ui/missing_asserts_for_indexing_unfixable.rs:34 :13
53+ --> tests/ui/missing_asserts_for_indexing_unfixable.rs:35 :13
5454 |
5555LL | let _ = v2[5] + v2[15];
5656 | ^^^^^ ^^^^^^
5757 |
5858 = help: consider asserting the length before indexing: `assert!(v2.len() > 15);`
5959
6060error: indexing into a slice multiple times without an `assert`
61- --> tests/ui/missing_asserts_for_indexing_unfixable.rs:44 :13
61+ --> tests/ui/missing_asserts_for_indexing_unfixable.rs:45 :13
6262 |
6363LL | let _ = f.v[0] + f.v[1];
6464 | ^^^^^^ ^^^^^^
6565 |
6666 = help: consider asserting the length before indexing: `assert!(f.v.len() > 1);`
6767
6868error: indexing into a slice multiple times without an `assert`
69- --> tests/ui/missing_asserts_for_indexing_unfixable.rs:58 :13
69+ --> tests/ui/missing_asserts_for_indexing_unfixable.rs:59 :13
7070 |
7171LL | let _ = x[0] + x[1];
7272 | ^^^^ ^^^^
7373 |
7474 = help: consider asserting the length before indexing: `assert!(x.len() > 1);`
7575
7676error: indexing into a slice multiple times without an `assert`
77- --> tests/ui/missing_asserts_for_indexing_unfixable.rs:76 :13
77+ --> tests/ui/missing_asserts_for_indexing_unfixable.rs:77 :13
7878 |
7979LL | let _ = v1[1] + v1[2];
8080 | ^^^^^ ^^^^^
8181 |
8282 = help: consider asserting the length before indexing: `assert!(v1.len() > 2);`
8383
8484error: indexing into a slice multiple times without an `assert`
85- --> tests/ui/missing_asserts_for_indexing_unfixable.rs:84 :13
85+ --> tests/ui/missing_asserts_for_indexing_unfixable.rs:85 :13
8686 |
8787LL | let _ = v1[0] + v1[1] + v1[2];
8888 | ^^^^^ ^^^^^ ^^^^^
0 commit comments