Skip to content

Commit

Permalink
keep ERROR in message
Browse files Browse the repository at this point in the history
  • Loading branch information
b-naber committed Mar 9, 2022
1 parent 18bb2dd commit 021c3b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/test/ui/associated-consts/defaults-cyclic-fail.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// build-fail
//~^ cycle detected when normalizing `<() as Tr>::A` [E0391]
//~^ ERROR cycle detected when normalizing `<() as Tr>::A` [E0391]

// Cyclic assoc. const defaults don't error unless *used*
trait Tr {
Expand Down
6 changes: 3 additions & 3 deletions src/test/ui/consts/const-eval/const-eval-query-stack.stderr
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
warning: any use of this value will cause an error
--> $DIR/const-eval-query-stack.rs:21:16
--> $DIR/const-eval-query-stack.rs:20:16
|
LL | const X: i32 = 1 / 0;
| ---------------^^^^^-
| |
| attempt to divide `1_i32` by zero
|
note: the lint level is defined here
--> $DIR/const-eval-query-stack.rs:20:8
--> $DIR/const-eval-query-stack.rs:19:8
|
LL | #[warn(const_err)]
| ^^^^^^^^^
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>

error[E0080]: evaluation of constant value failed
--> $DIR/const-eval-query-stack.rs:25:28
--> $DIR/const-eval-query-stack.rs:24:28
|
LL | let x: &'static i32 = &X;
| ^ referenced constant has errors
Expand Down

0 comments on commit 021c3b0

Please sign in to comment.