-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #117438 - cjgillot:deterministic-error, r=oli-obk
Do not ICE on constant evaluation failure in GVN. Fixes #117362
- Loading branch information
Showing
4 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
error[E0080]: evaluation of `<A<()> as Foo<()>>::BAR` failed | ||
--> $DIR/issue-50814-2.rs:16:24 | ||
| | ||
LL | const BAR: usize = [5, 6, 7][T::BOO]; | ||
| ^^^^^^^^^^^^^^^^^ index out of bounds: the length is 3 but the index is 42 | ||
|
||
note: erroneous constant encountered | ||
--> $DIR/issue-50814-2.rs:20:6 | ||
| | ||
LL | &<A<T> as Foo<T>>::BAR | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
note: erroneous constant encountered | ||
--> $DIR/issue-50814-2.rs:20:5 | ||
| | ||
LL | &<A<T> as Foo<T>>::BAR | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0080`. |
6 changes: 3 additions & 3 deletions
6
...ui/consts/const-eval/issue-50814-2.stderr → ...ts/const-eval/issue-50814-2.normal.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters