@@ -68,7 +68,6 @@ note: slice indexed here
6868 |
6969LL | v[0] + v[1] + v[2] + v[3] + v[4]
7070 | ^^^^
71- = note: asserting the length before indexing will elide bounds checks
7271
7372error: indexing into a slice multiple times with an `assert` that does not cover the highest index
7473 --> tests/ui/missing_asserts_for_indexing.rs:42:5
@@ -103,7 +102,6 @@ note: slice indexed here
103102 |
104103LL | v[0] + v[1] + v[2] + v[3] + v[4]
105104 | ^^^^
106- = note: asserting the length before indexing will elide bounds checks
107105
108106error: indexing into a slice multiple times with an `assert` that does not cover the highest index
109107 --> tests/ui/missing_asserts_for_indexing.rs:48:5
@@ -138,7 +136,6 @@ note: slice indexed here
138136 |
139137LL | v[0] + v[1] + v[2] + v[3] + v[4]
140138 | ^^^^
141- = note: asserting the length before indexing will elide bounds checks
142139
143140error: indexing into a slice multiple times with an `assert` that does not cover the highest index
144141 --> tests/ui/missing_asserts_for_indexing.rs:66:13
@@ -161,7 +158,6 @@ note: slice indexed here
161158 |
162159LL | let _ = v[1..4];
163160 | ^^^^^^^
164- = note: asserting the length before indexing will elide bounds checks
165161
166162error: indexing into a slice multiple times with an `assert` that does not cover the highest index
167163 --> tests/ui/missing_asserts_for_indexing.rs:81:13
@@ -184,7 +180,6 @@ note: slice indexed here
184180 |
185181LL | let _ = v[1..=4];
186182 | ^^^^^^^^
187- = note: asserting the length before indexing will elide bounds checks
188183
189184error: indexing into a slice multiple times with an `assert` that does not cover the highest index
190185 --> tests/ui/missing_asserts_for_indexing.rs:97:13
@@ -205,7 +200,6 @@ note: slice indexed here
205200 |
206201LL | let _ = v1[0] + v1[12];
207202 | ^^^^^^
208- = note: asserting the length before indexing will elide bounds checks
209203
210204error: indexing into a slice multiple times with an `assert` that does not cover the highest index
211205 --> tests/ui/missing_asserts_for_indexing.rs:100:13
@@ -226,7 +220,6 @@ note: slice indexed here
226220 |
227221LL | let _ = v2[5] + v2[15];
228222 | ^^^^^^
229- = note: asserting the length before indexing will elide bounds checks
230223
231224error: indexing into a slice multiple times with an `assert` that does not cover the highest index
232225 --> tests/ui/missing_asserts_for_indexing.rs:106:13
@@ -247,7 +240,6 @@ note: slice indexed here
247240 |
248241LL | let _ = v1[0] + v1[12];
249242 | ^^^^^^
250- = note: asserting the length before indexing will elide bounds checks
251243
252244error: indexing into a slice multiple times with an `assert` that does not cover the highest index
253245 --> tests/ui/missing_asserts_for_indexing.rs:131:13
@@ -273,7 +265,6 @@ note: slice indexed here
273265 |
274266LL | let _ = v1[0] + v1[1] + v1[2];
275267 | ^^^^^
276- = note: asserting the length before indexing will elide bounds checks
277268
278269error: indexing into a slice multiple times with an `assert` that does not cover the highest index
279270 --> tests/ui/missing_asserts_for_indexing.rs:136:13
@@ -299,7 +290,6 @@ note: slice indexed here
299290 |
300291LL | let _ = v3[0] + v3[1] + v3[2];
301292 | ^^^^^
302- = note: asserting the length before indexing will elide bounds checks
303293
304294error: indexing into a slice multiple times with an `assert` that does not cover the highest index
305295 --> tests/ui/missing_asserts_for_indexing.rs:158:13
@@ -325,7 +315,6 @@ note: slice indexed here
325315 |
326316LL | let _ = v1[0] + v1[1] + v1[2];
327317 | ^^^^^
328- = note: asserting the length before indexing will elide bounds checks
329318
330319error: indexing into a slice multiple times with an `assert` that does not cover the highest index
331320 --> tests/ui/missing_asserts_for_indexing.rs:163:13
@@ -351,7 +340,6 @@ note: slice indexed here
351340 |
352341LL | let _ = v3[0] + v3[1] + v3[2];
353342 | ^^^^^
354- = note: asserting the length before indexing will elide bounds checks
355343
356344error: indexing into a slice multiple times with an `assert` that does not cover the highest index
357345 --> tests/ui/missing_asserts_for_indexing.rs:172:17
@@ -376,7 +364,6 @@ note: slice indexed here
376364 |
377365LL | let _ = v[0] + v[1] + v[2];
378366 | ^^^^
379- = note: asserting the length before indexing will elide bounds checks
380367
381368error: indexing into a slice multiple times with an `assert` that does not cover the highest index
382369 --> tests/ui/missing_asserts_for_indexing.rs:178:17
@@ -401,7 +388,6 @@ note: slice indexed here
401388 |
402389LL | let _ = v[0] + v[1] + v[2];
403390 | ^^^^
404- = note: asserting the length before indexing will elide bounds checks
405391
406392error: aborting due to 15 previous errors
407393
0 commit comments