|
1 | 1 | error: any use of this value will cause an error
|
2 |
| - --> $DIR/const_panic.rs:4:19 |
| 2 | + --> $DIR/const_panic.rs:4:15 |
3 | 3 | |
|
4 |
| -LL | pub const Z: () = panic!("cheese"); |
5 |
| - | ------------------^^^^^^^^^^^^^^^^- |
6 |
| - | | |
7 |
| - | the evaluated program panicked at 'cheese', $DIR/const_panic.rs:4:19 |
| 4 | +LL | const Z: () = std::panic!("cheese"); |
| 5 | + | --------------^^^^^^^^^^^^^^^^^^^^^- |
| 6 | + | | |
| 7 | + | the evaluated program panicked at 'cheese', $DIR/const_panic.rs:4:15 |
8 | 8 | |
|
9 | 9 | = note: `#[deny(const_err)]` on by default
|
10 | 10 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
11 | 11 |
|
12 | 12 | error: any use of this value will cause an error
|
13 |
| - --> $DIR/const_panic.rs:7:19 |
| 13 | + --> $DIR/const_panic.rs:7:16 |
14 | 14 | |
|
15 |
| -LL | pub const Y: () = unreachable!(); |
16 |
| - | ------------------^^^^^^^^^^^^^^- |
17 |
| - | | |
18 |
| - | the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:7:19 |
| 15 | +LL | const Z2: () = std::panic!(); |
| 16 | + | ---------------^^^^^^^^^^^^^- |
| 17 | + | | |
| 18 | + | the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:7:16 |
19 | 19 | |
|
20 | 20 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
21 | 21 |
|
22 | 22 | error: any use of this value will cause an error
|
23 |
| - --> $DIR/const_panic.rs:10:19 |
| 23 | + --> $DIR/const_panic.rs:10:15 |
24 | 24 | |
|
25 |
| -LL | pub const X: () = unimplemented!(); |
26 |
| - | ------------------^^^^^^^^^^^^^^^^- |
27 |
| - | | |
28 |
| - | the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:10:19 |
| 25 | +LL | const Y: () = std::unreachable!(); |
| 26 | + | --------------^^^^^^^^^^^^^^^^^^^- |
| 27 | + | | |
| 28 | + | the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:10:15 |
29 | 29 | |
|
30 | 30 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
31 | 31 |
|
32 |
| -error: aborting due to 3 previous errors |
| 32 | +error: any use of this value will cause an error |
| 33 | + --> $DIR/const_panic.rs:13:15 |
| 34 | + | |
| 35 | +LL | const X: () = std::unimplemented!(); |
| 36 | + | --------------^^^^^^^^^^^^^^^^^^^^^- |
| 37 | + | | |
| 38 | + | the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:13:15 |
| 39 | + | |
| 40 | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
| 41 | + |
| 42 | +error: any use of this value will cause an error |
| 43 | + --> $DIR/const_panic.rs:16:20 |
| 44 | + | |
| 45 | +LL | const Z_CORE: () = core::panic!("cheese"); |
| 46 | + | -------------------^^^^^^^^^^^^^^^^^^^^^^- |
| 47 | + | | |
| 48 | + | the evaluated program panicked at 'cheese', $DIR/const_panic.rs:16:20 |
| 49 | + | |
| 50 | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
| 51 | + |
| 52 | +error: any use of this value will cause an error |
| 53 | + --> $DIR/const_panic.rs:19:21 |
| 54 | + | |
| 55 | +LL | const Z2_CORE: () = core::panic!(); |
| 56 | + | --------------------^^^^^^^^^^^^^^- |
| 57 | + | | |
| 58 | + | the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:19:21 |
| 59 | + | |
| 60 | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
| 61 | + |
| 62 | +error: any use of this value will cause an error |
| 63 | + --> $DIR/const_panic.rs:22:20 |
| 64 | + | |
| 65 | +LL | const Y_CORE: () = core::unreachable!(); |
| 66 | + | -------------------^^^^^^^^^^^^^^^^^^^^- |
| 67 | + | | |
| 68 | + | the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:22:20 |
| 69 | + | |
| 70 | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
| 71 | + |
| 72 | +error: any use of this value will cause an error |
| 73 | + --> $DIR/const_panic.rs:25:20 |
| 74 | + | |
| 75 | +LL | const X_CORE: () = core::unimplemented!(); |
| 76 | + | -------------------^^^^^^^^^^^^^^^^^^^^^^- |
| 77 | + | | |
| 78 | + | the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:25:20 |
| 79 | + | |
| 80 | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
| 81 | + |
| 82 | +error: aborting due to 8 previous errors |
33 | 83 |
|
0 commit comments