Skip to content

Commit 49934e7

Browse files
committed
Remove unnecessary comment
1 parent 7a36a8d commit 49934e7

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

tests/ui/indexing_slicing_index.rs

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ fn main() {
2222
v[10];
2323
v[1 << 3];
2424

25-
//
26-
// Continue tests at end function to minimize the changes to this file's corresponding stderr.
27-
//
28-
2925
const N: usize = 15; // Out of bounds
3026
const M: usize = 3; // In bounds
3127
x[N]; // Ok, let rustc's `const_err` lint handle `usize` indexing on arrays.

tests/ui/indexing_slicing_index.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LL | x[1 << 3]; // Ok, let rustc's `const_err` lint handle `usize` indexing
1313
| ^^^^^^^^^
1414

1515
error: index out of bounds: the len is 4 but the index is 15
16-
--> $DIR/indexing_slicing_index.rs:31:5
16+
--> $DIR/indexing_slicing_index.rs:27:5
1717
|
1818
LL | x[N]; // Ok, let rustc's `const_err` lint handle `usize` indexing on arrays.
1919
| ^^^^
@@ -60,15 +60,15 @@ LL | v[1 << 3];
6060
= help: Consider using `.get(n)` or `.get_mut(n)` instead
6161

6262
error: indexing may panic.
63-
--> $DIR/indexing_slicing_index.rs:33:5
63+
--> $DIR/indexing_slicing_index.rs:29:5
6464
|
6565
LL | v[N];
6666
| ^^^^
6767
|
6868
= help: Consider using `.get(n)` or `.get_mut(n)` instead
6969

7070
error: indexing may panic.
71-
--> $DIR/indexing_slicing_index.rs:34:5
71+
--> $DIR/indexing_slicing_index.rs:30:5
7272
|
7373
LL | v[M];
7474
| ^^^^

0 commit comments

Comments
 (0)