|
1 | 1 | error: any use of this value will cause an error
|
2 |
| - --> $DIR/const_panic.rs:4:15 |
| 2 | + --> $DIR/const_panic.rs:6:15 |
3 | 3 | |
|
4 | 4 | LL | const Z: () = std::panic!("cheese");
|
5 | 5 | | --------------^^^^^^^^^^^^^^^^^^^^^-
|
6 | 6 | | |
|
7 |
| - | the evaluated program panicked at 'cheese', $DIR/const_panic.rs:4:15 |
| 7 | + | the evaluated program panicked at 'cheese', $DIR/const_panic.rs:6: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:16 |
| 13 | + --> $DIR/const_panic.rs:9:16 |
14 | 14 | |
|
15 | 15 | LL | const Z2: () = std::panic!();
|
16 | 16 | | ---------------^^^^^^^^^^^^^-
|
17 | 17 | | |
|
18 |
| - | the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:7:16 |
| 18 | + | the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:9: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:15 |
| 23 | + --> $DIR/const_panic.rs:12:15 |
24 | 24 | |
|
25 | 25 | LL | const Y: () = std::unreachable!();
|
26 | 26 | | --------------^^^^^^^^^^^^^^^^^^^-
|
27 | 27 | | |
|
28 |
| - | the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:10:15 |
| 28 | + | the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:12: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 | 32 | error: any use of this value will cause an error
|
33 |
| - --> $DIR/const_panic.rs:13:15 |
| 33 | + --> $DIR/const_panic.rs:15:15 |
34 | 34 | |
|
35 | 35 | LL | const X: () = std::unimplemented!();
|
36 | 36 | | --------------^^^^^^^^^^^^^^^^^^^^^-
|
37 | 37 | | |
|
38 |
| - | the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:13:15 |
| 38 | + | the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:15:15 |
39 | 39 | |
|
40 | 40 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
41 | 41 |
|
42 | 42 | error: any use of this value will cause an error
|
43 |
| - --> $DIR/const_panic.rs:16:20 |
| 43 | + --> $DIR/const_panic.rs:18:15 |
| 44 | + | |
| 45 | +LL | const W: () = std::panic!(MSG); |
| 46 | + | --------------^^^^^^^^^^^^^^^^- |
| 47 | + | | |
| 48 | + | the evaluated program panicked at 'hello', $DIR/const_panic.rs:18:15 |
| 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:21:20 |
44 | 54 | |
|
45 | 55 | LL | const Z_CORE: () = core::panic!("cheese");
|
46 | 56 | | -------------------^^^^^^^^^^^^^^^^^^^^^^-
|
47 | 57 | | |
|
48 |
| - | the evaluated program panicked at 'cheese', $DIR/const_panic.rs:16:20 |
| 58 | + | the evaluated program panicked at 'cheese', $DIR/const_panic.rs:21:20 |
49 | 59 | |
|
50 | 60 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
51 | 61 |
|
52 | 62 | error: any use of this value will cause an error
|
53 |
| - --> $DIR/const_panic.rs:19:21 |
| 63 | + --> $DIR/const_panic.rs:24:21 |
54 | 64 | |
|
55 | 65 | LL | const Z2_CORE: () = core::panic!();
|
56 | 66 | | --------------------^^^^^^^^^^^^^^-
|
57 | 67 | | |
|
58 |
| - | the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:19:21 |
| 68 | + | the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:24:21 |
59 | 69 | |
|
60 | 70 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
61 | 71 |
|
62 | 72 | error: any use of this value will cause an error
|
63 |
| - --> $DIR/const_panic.rs:22:20 |
| 73 | + --> $DIR/const_panic.rs:27:20 |
64 | 74 | |
|
65 | 75 | LL | const Y_CORE: () = core::unreachable!();
|
66 | 76 | | -------------------^^^^^^^^^^^^^^^^^^^^-
|
67 | 77 | | |
|
68 |
| - | the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:22:20 |
| 78 | + | the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:27:20 |
69 | 79 | |
|
70 | 80 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
71 | 81 |
|
72 | 82 | error: any use of this value will cause an error
|
73 |
| - --> $DIR/const_panic.rs:25:20 |
| 83 | + --> $DIR/const_panic.rs:30:20 |
74 | 84 | |
|
75 | 85 | LL | const X_CORE: () = core::unimplemented!();
|
76 | 86 | | -------------------^^^^^^^^^^^^^^^^^^^^^^-
|
77 | 87 | | |
|
78 |
| - | the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:25:20 |
| 88 | + | the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:30:20 |
| 89 | + | |
| 90 | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
| 91 | + |
| 92 | +error: any use of this value will cause an error |
| 93 | + --> $DIR/const_panic.rs:33:20 |
| 94 | + | |
| 95 | +LL | const W_CORE: () = core::panic!(MSG); |
| 96 | + | -------------------^^^^^^^^^^^^^^^^^- |
| 97 | + | | |
| 98 | + | the evaluated program panicked at 'hello', $DIR/const_panic.rs:33:20 |
79 | 99 | |
|
80 | 100 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
81 | 101 |
|
82 |
| -error: aborting due to 8 previous errors |
| 102 | +error: aborting due to 10 previous errors |
83 | 103 |
|
0 commit comments