]>
Commit | Line | Data |
---|---|---|
5869c6ff | 1 | warning: any use of this value will cause an error |
923072b8 | 2 | --> $DIR/const-eval-query-stack.rs:19:16 |
3dfed10e | 3 | | |
5869c6ff | 4 | LL | const X: i32 = 1 / 0; |
064997fb | 5 | | ------------ ^^^^^ attempt to divide `1_i32` by zero |
3dfed10e | 6 | | |
5869c6ff | 7 | note: the lint level is defined here |
923072b8 | 8 | --> $DIR/const-eval-query-stack.rs:18:8 |
5869c6ff XL |
9 | | |
10 | LL | #[warn(const_err)] | |
11 | | ^^^^^^^^^ | |
12 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
13 | = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> | |
3dfed10e | 14 | |
5869c6ff | 15 | error[E0080]: evaluation of constant value failed |
923072b8 | 16 | --> $DIR/const-eval-query-stack.rs:23:28 |
5869c6ff XL |
17 | | |
18 | LL | let x: &'static i32 = &X; | |
19 | | ^ referenced constant has errors | |
923072b8 FG |
20 | |
21 | error: erroneous constant used | |
22 | --> $DIR/const-eval-query-stack.rs:23:27 | |
23 | | | |
24 | LL | let x: &'static i32 = &X; | |
25 | | ^^ referenced constant has errors | |
26 | | | |
27 | = note: `#[deny(const_err)]` on by default | |
28 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
29 | = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> | |
30 | ||
3dfed10e | 31 | query stack during panic: |
923072b8 FG |
32 | #0 [mir_drops_elaborated_and_const_checked] elaborating drops for `main` |
33 | #1 [optimized_mir] optimizing MIR for `main` | |
34 | #2 [collect_and_partition_mono_items] collect_and_partition_mono_items | |
3dfed10e | 35 | end of query stack |
064997fb FG |
36 | Future incompatibility report: Future breakage diagnostic: |
37 | warning: any use of this value will cause an error | |
38 | --> $DIR/const-eval-query-stack.rs:19:16 | |
39 | | | |
40 | LL | const X: i32 = 1 / 0; | |
41 | | ------------ ^^^^^ attempt to divide `1_i32` by zero | |
42 | | | |
43 | note: the lint level is defined here | |
44 | --> $DIR/const-eval-query-stack.rs:18:8 | |
45 | | | |
46 | LL | #[warn(const_err)] | |
47 | | ^^^^^^^^^ | |
48 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
49 | = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> | |
50 | ||
51 | Future breakage diagnostic: | |
52 | error: erroneous constant used | |
53 | --> $DIR/const-eval-query-stack.rs:23:27 | |
54 | | | |
55 | LL | let x: &'static i32 = &X; | |
56 | | ^^ referenced constant has errors | |
57 | | | |
58 | = note: `#[deny(const_err)]` on by default | |
59 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
60 | = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> | |
61 |