Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
247 additions
and
283 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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 |
---|---|---|
@@ -1,26 +1,15 @@ | ||
error[E0080]: constant evaluation error | ||
--> $DIR/conditional_array_execution.rs:13:19 | ||
| | ||
13 | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; //~ E0080 | ||
| ^^^^^ attempt to subtract with overflow | ||
| | ||
note: inside call to FOO | ||
--> $DIR/conditional_array_execution.rs:13:1 | ||
--> $DIR/conditional_array_execution.rs:16:20 | ||
| | ||
13 | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; //~ E0080 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
LL | println!("{}", FOO); //~ E0080 | ||
| ^^^ referenced constant has errors | ||
|
||
error[E0080]: constant evaluation error | ||
--> $DIR/conditional_array_execution.rs:16:20 | ||
| | ||
16 | println!("{}", FOO); //~ E0080 | ||
| ^^^ attempt to subtract with overflow | ||
| | ||
note: inside call to main | ||
--> $DIR/conditional_array_execution.rs:16:20 | ||
--> $DIR/conditional_array_execution.rs:13:19 | ||
| | ||
16 | println!("{}", FOO); //~ E0080 | ||
| ^^^ | ||
LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; //~ E0080 | ||
| ^^^^^ attempt to subtract with overflow | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
If you want more information on this error, try using "rustc --explain E0080" |
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,9 @@ | ||
error[E0080]: constant evaluation error | ||
--> $DIR/index_out_of_bound.rs:11:19 | ||
| | ||
LL | static FOO: i32 = [][0]; | ||
| ^^^^^ index out of bounds: the len is 0 but the index is 0 at $DIR/index_out_of_bound.rs:11:19: 11:24 | ||
|
||
error: aborting due to previous error | ||
|
||
If you want more information on this error, try using "rustc --explain E0080" |
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 |
---|---|---|
@@ -1,29 +1,27 @@ | ||
warning: constant evaluation error: attempt to subtract with overflow | ||
--> $DIR/issue-43197.rs:18:20 | ||
error[E0080]: constant evaluation error | ||
--> $DIR/issue-43197.rs:20:23 | ||
| | ||
LL | const X: u32 = 0-1; //~ ERROR constant evaluation error | ||
| ^^^ | ||
LL | println!("{} {}", X, Y); | ||
| ^ referenced constant has errors | ||
|
||
error[E0080]: constant evaluation error | ||
--> $DIR/issue-43197.rs:20:26 | ||
| | ||
= note: #[warn(const_err)] on by default | ||
LL | println!("{} {}", X, Y); | ||
| ^ referenced constant has errors | ||
|
||
warning: constant evaluation error: attempt to subtract with overflow | ||
--> $DIR/issue-43197.rs:20:20 | ||
error[E0080]: constant evaluation error | ||
--> $DIR/issue-43197.rs:19:24 | ||
| | ||
LL | const Y: u32 = foo(0-1); //~ ERROR constant evaluation error | ||
| ^^^^^^^^ | ||
| ^^^ attempt to subtract with overflow | ||
|
||
error[E0080]: constant evaluation error | ||
--> $DIR/issue-43197.rs:18:20 | ||
| | ||
LL | const X: u32 = 0-1; //~ ERROR constant evaluation error | ||
| ^^^ attempt to subtract with overflow | ||
|
||
error[E0080]: constant evaluation error | ||
--> $DIR/issue-43197.rs:20:24 | ||
| | ||
LL | const Y: u32 = foo(0-1); //~ ERROR constant evaluation error | ||
| ^^^ attempt to subtract with overflow | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to 4 previous errors | ||
|
||
If you want more information on this error, try using "rustc --explain E0080" |
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 |
---|---|---|
@@ -1,15 +0,0 @@ | ||
error[E0080]: constant evaluation error | ||
--> $DIR/const-expr-addr-operator.rs:15:29 | ||
| | ||
LL | const X: &'static u32 = &22; //~ ERROR constant evaluation error | ||
| ^^^ unimplemented constant expression: address operator | ||
| | ||
note: for pattern here | ||
--> $DIR/const-expr-addr-operator.rs:17:9 | ||
| | ||
LL | X => 0, | ||
| ^ | ||
|
||
error: aborting due to previous error | ||
|
||
If you want more information on this error, try using "rustc --explain E0080" | ||
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
Oops, something went wrong.