|
1 | 1 | error[E0080]: evaluation of constant value failed
|
2 |
| - --> $DIR/const_panic_2021.rs:5:15 |
| 2 | + --> $DIR/const_panic_2021.rs:7:15 |
3 | 3 | |
|
4 | 4 | LL | const A: () = std::panic!("blåhaj");
|
5 |
| - | ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'blåhaj', $DIR/const_panic_2021.rs:5:15 |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'blåhaj', $DIR/const_panic_2021.rs:7:15 |
6 | 6 | |
|
7 | 7 | = note: this error originates in the macro `$crate::panic::panic_2021` (in Nightly builds, run with -Z macro-backtrace for more info)
|
8 | 8 |
|
9 | 9 | error[E0080]: evaluation of constant value failed
|
10 |
| - --> $DIR/const_panic_2021.rs:8:15 |
| 10 | + --> $DIR/const_panic_2021.rs:10:15 |
11 | 11 | |
|
12 | 12 | LL | const B: () = std::panic!();
|
13 |
| - | ^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic_2021.rs:8:15 |
| 13 | + | ^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic_2021.rs:10:15 |
14 | 14 | |
|
15 | 15 | = note: this error originates in the macro `$crate::panic::panic_2021` (in Nightly builds, run with -Z macro-backtrace for more info)
|
16 | 16 |
|
17 | 17 | error[E0080]: evaluation of constant value failed
|
18 |
| - --> $DIR/const_panic_2021.rs:11:15 |
| 18 | + --> $DIR/const_panic_2021.rs:13:15 |
19 | 19 | |
|
20 | 20 | LL | const C: () = std::unreachable!();
|
21 |
| - | ^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic_2021.rs:11:15 |
| 21 | + | ^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic_2021.rs:13:15 |
22 | 22 | |
|
23 | 23 | = note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
|
24 | 24 |
|
25 | 25 | error[E0080]: evaluation of constant value failed
|
26 |
| - --> $DIR/const_panic_2021.rs:14:15 |
| 26 | + --> $DIR/const_panic_2021.rs:16:15 |
27 | 27 | |
|
28 | 28 | LL | const D: () = std::unimplemented!();
|
29 |
| - | ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic_2021.rs:14:15 |
| 29 | + | ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic_2021.rs:16:15 |
30 | 30 | |
|
31 | 31 | = note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
|
32 | 32 |
|
33 | 33 | error[E0080]: evaluation of constant value failed
|
34 |
| - --> $DIR/const_panic_2021.rs:17:15 |
| 34 | + --> $DIR/const_panic_2021.rs:19:15 |
35 | 35 | |
|
36 |
| -LL | const E: () = core::panic!("shark"); |
37 |
| - | ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'shark', $DIR/const_panic_2021.rs:17:15 |
| 36 | +LL | const E: () = std::panic!("{}", MSG); |
| 37 | + | ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic_2021.rs:19:15 |
38 | 38 | |
|
39 | 39 | = note: this error originates in the macro `$crate::panic::panic_2021` (in Nightly builds, run with -Z macro-backtrace for more info)
|
40 | 40 |
|
41 | 41 | error[E0080]: evaluation of constant value failed
|
42 |
| - --> $DIR/const_panic_2021.rs:20:15 |
| 42 | + --> $DIR/const_panic_2021.rs:22:20 |
43 | 43 | |
|
44 |
| -LL | const F: () = core::panic!(); |
45 |
| - | ^^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic_2021.rs:20:15 |
| 44 | +LL | const A_CORE: () = core::panic!("shark"); |
| 45 | + | ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'shark', $DIR/const_panic_2021.rs:22:20 |
46 | 46 | |
|
47 | 47 | = note: this error originates in the macro `$crate::panic::panic_2021` (in Nightly builds, run with -Z macro-backtrace for more info)
|
48 | 48 |
|
49 | 49 | error[E0080]: evaluation of constant value failed
|
50 |
| - --> $DIR/const_panic_2021.rs:23:15 |
| 50 | + --> $DIR/const_panic_2021.rs:25:20 |
51 | 51 | |
|
52 |
| -LL | const G: () = core::unreachable!(); |
53 |
| - | ^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic_2021.rs:23:15 |
| 52 | +LL | const B_CORE: () = core::panic!(); |
| 53 | + | ^^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic_2021.rs:25:20 |
| 54 | + | |
| 55 | + = note: this error originates in the macro `$crate::panic::panic_2021` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 56 | + |
| 57 | +error[E0080]: evaluation of constant value failed |
| 58 | + --> $DIR/const_panic_2021.rs:28:20 |
| 59 | + | |
| 60 | +LL | const C_CORE: () = core::unreachable!(); |
| 61 | + | ^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic_2021.rs:28:20 |
54 | 62 | |
|
55 | 63 | = note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
|
56 | 64 |
|
57 | 65 | error[E0080]: evaluation of constant value failed
|
58 |
| - --> $DIR/const_panic_2021.rs:26:15 |
| 66 | + --> $DIR/const_panic_2021.rs:31:20 |
59 | 67 | |
|
60 |
| -LL | const H: () = core::unimplemented!(); |
61 |
| - | ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic_2021.rs:26:15 |
| 68 | +LL | const D_CORE: () = core::unimplemented!(); |
| 69 | + | ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic_2021.rs:31:20 |
62 | 70 | |
|
63 | 71 | = note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
|
64 | 72 |
|
65 |
| -error: aborting due to 8 previous errors |
| 73 | +error[E0080]: evaluation of constant value failed |
| 74 | + --> $DIR/const_panic_2021.rs:34:20 |
| 75 | + | |
| 76 | +LL | const E_CORE: () = core::panic!("{}", MSG); |
| 77 | + | ^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic_2021.rs:34:20 |
| 78 | + | |
| 79 | + = note: this error originates in the macro `$crate::panic::panic_2021` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 80 | + |
| 81 | +error: aborting due to 10 previous errors |
66 | 82 |
|
67 | 83 | For more information about this error, try `rustc --explain E0080`.
|
0 commit comments