Skip to content

[beta] Rollup backports #62065

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jun 26, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bless ui tests
  • Loading branch information
pietroalbini authored and Mark-Simulacrum committed Jun 26, 2019
commit b2f5f0f4b0a58d3d853e2005b28c9471d8b87a37
1 change: 0 additions & 1 deletion src/test/ui/consts/array-literal-index-oob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ fn main() {
&{[1, 2, 3][4]};
//~^ ERROR index out of bounds
//~| ERROR reaching this expression at runtime will panic or abort
//~| ERROR this expression will panic at runtime
}
8 changes: 1 addition & 7 deletions src/test/ui/consts/array-literal-index-oob.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ LL | &{[1, 2, 3][4]};
|
= note: #[deny(const_err)] on by default

error: this expression will panic at runtime
--> $DIR/array-literal-index-oob.rs:2:5
|
LL | &{[1, 2, 3][4]};
| ^^^^^^^^^^^^^^^ index out of bounds: the len is 3 but the index is 4

error: reaching this expression at runtime will panic or abort
--> $DIR/array-literal-index-oob.rs:2:7
|
Expand All @@ -20,5 +14,5 @@ LL | &{[1, 2, 3][4]};
| |
| index out of bounds: the len is 3 but the index is 4

error: aborting due to 3 previous errors
error: aborting due to 2 previous errors