diff options
| author | Ralf Jung <post@ralfj.de> | 2022-06-25 09:31:36 -0400 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-06-25 16:03:25 -0400 |
| commit | 3899914131053cafb46f61ba3c7d6846673ebd22 (patch) | |
| tree | 09db5708eaa97a940d458901ecb5d1e011d0f0ec /src/test/ui/consts/const-eval/const-eval-query-stack.stderr | |
| parent | af58692ad10d402612a80fec782cc8e5dce2a75a (diff) | |
| download | rust-3899914131053cafb46f61ba3c7d6846673ebd22.tar.gz rust-3899914131053cafb46f61ba3c7d6846673ebd22.zip | |
bless after rebase
Diffstat (limited to 'src/test/ui/consts/const-eval/const-eval-query-stack.stderr')
| -rw-r--r-- | src/test/ui/consts/const-eval/const-eval-query-stack.stderr | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/test/ui/consts/const-eval/const-eval-query-stack.stderr b/src/test/ui/consts/const-eval/const-eval-query-stack.stderr index fb4c92861cb..bbec2a830e6 100644 --- a/src/test/ui/consts/const-eval/const-eval-query-stack.stderr +++ b/src/test/ui/consts/const-eval/const-eval-query-stack.stderr @@ -37,7 +37,7 @@ query stack during panic: end of query stack Future incompatibility report: Future breakage diagnostic: warning: any use of this value will cause an error - --> $DIR/const-eval-query-stack.rs:20:16 + --> $DIR/const-eval-query-stack.rs:19:16 | LL | const X: i32 = 1 / 0; | ---------------^^^^^- @@ -45,10 +45,21 @@ 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:19:8 + --> $DIR/const-eval-query-stack.rs:18: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> +Future breakage diagnostic: +error: erroneous constant used + --> $DIR/const-eval-query-stack.rs:23:27 + | +LL | let x: &'static i32 = &X; + | ^^ referenced constant has errors + | + = note: `#[deny(const_err)]` on by default + = 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> + |
