You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aborted execution: attempted to leave type `&i32` uninitialized, which is invalid
11
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ panic: aborted execution: attempted to leave type `&i32` uninitialized, which is invalid
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
Copy file name to clipboardExpand all lines: tests/ui/consts/const-eval/const_panic.stderr
+12-12
Original file line number
Diff line number
Diff line change
@@ -2,95 +2,95 @@ error[E0080]: evaluation of constant value failed
2
2
--> $DIR/const_panic.rs:6:15
3
3
|
4
4
LL | const Z: () = std::panic!("cheese");
5
-
| ^^^^^^^^^^^^^^^^^^^^^ cheese
5
+
| ^^^^^^^^^^^^^^^^^^^^^ panic: cheese
6
6
|
7
7
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
8
8
9
9
error[E0080]: evaluation of constant value failed
10
10
--> $DIR/const_panic.rs:9:16
11
11
|
12
12
LL | const Z2: () = std::panic!();
13
-
| ^^^^^^^^^^^^^ explicit panic
13
+
| ^^^^^^^^^^^^^ panic: explicit panic
14
14
|
15
15
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the macro `$crate::panic::unreachable_2015` which comes from the expansion of the macro `std::unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)
24
24
25
25
error[E0080]: evaluation of constant value failed
26
26
--> $DIR/const_panic.rs:15:15
27
27
|
28
28
LL | const X: () = std::unimplemented!();
29
-
| ^^^^^^^^^^^^^^^^^^^^^ not implemented
29
+
| ^^^^^^^^^^^^^^^^^^^^^ panic: not implemented
30
30
|
31
31
= note: this error originates in the macro `std::unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
32
32
33
33
error[E0080]: evaluation of constant value failed
34
34
--> $DIR/const_panic.rs:18:15
35
35
|
36
36
LL | const W: () = std::panic!(MSG);
37
-
| ^^^^^^^^^^^^^^^^ hello
37
+
| ^^^^^^^^^^^^^^^^ panic: hello
38
38
|
39
39
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
40
40
41
41
error[E0080]: evaluation of constant value failed
42
42
--> $DIR/const_panic.rs:21:16
43
43
|
44
44
LL | const W2: () = std::panic!("{}", MSG);
45
-
| ^^^^^^^^^^^^^^^^^^^^^^ hello
45
+
| ^^^^^^^^^^^^^^^^^^^^^^ panic: hello
46
46
|
47
47
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
48
48
49
49
error[E0080]: evaluation of constant value failed
50
50
--> $DIR/const_panic.rs:24:20
51
51
|
52
52
LL | const Z_CORE: () = core::panic!("cheese");
53
-
| ^^^^^^^^^^^^^^^^^^^^^^ cheese
53
+
| ^^^^^^^^^^^^^^^^^^^^^^ panic: cheese
54
54
|
55
55
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
56
56
57
57
error[E0080]: evaluation of constant value failed
58
58
--> $DIR/const_panic.rs:27:21
59
59
|
60
60
LL | const Z2_CORE: () = core::panic!();
61
-
| ^^^^^^^^^^^^^^ explicit panic
61
+
| ^^^^^^^^^^^^^^ panic: explicit panic
62
62
|
63
63
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the macro `$crate::panic::unreachable_2015` which comes from the expansion of the macro `core::unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)
72
72
73
73
error[E0080]: evaluation of constant value failed
74
74
--> $DIR/const_panic.rs:33:20
75
75
|
76
76
LL | const X_CORE: () = core::unimplemented!();
77
-
| ^^^^^^^^^^^^^^^^^^^^^^ not implemented
77
+
| ^^^^^^^^^^^^^^^^^^^^^^ panic: not implemented
78
78
|
79
79
= note: this error originates in the macro `core::unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
80
80
81
81
error[E0080]: evaluation of constant value failed
82
82
--> $DIR/const_panic.rs:36:20
83
83
|
84
84
LL | const W_CORE: () = core::panic!(MSG);
85
-
| ^^^^^^^^^^^^^^^^^ hello
85
+
| ^^^^^^^^^^^^^^^^^ panic: hello
86
86
|
87
87
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
88
88
89
89
error[E0080]: evaluation of constant value failed
90
90
--> $DIR/const_panic.rs:39:21
91
91
|
92
92
LL | const W2_CORE: () = core::panic!("{}", MSG);
93
-
| ^^^^^^^^^^^^^^^^^^^^^^^ hello
93
+
| ^^^^^^^^^^^^^^^^^^^^^^^ panic: hello
94
94
|
95
95
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
Copy file name to clipboardExpand all lines: tests/ui/consts/const-eval/const_panic_2021.stderr
+10-10
Original file line number
Diff line number
Diff line change
@@ -2,79 +2,79 @@ error[E0080]: evaluation of constant value failed
2
2
--> $DIR/const_panic_2021.rs:6:15
3
3
|
4
4
LL | const A: () = std::panic!("blåhaj");
5
-
| ^^^^^^^^^^^^^^^^^^^^^ blåhaj
5
+
| ^^^^^^^^^^^^^^^^^^^^^ panic: blåhaj
6
6
|
7
7
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
8
8
9
9
error[E0080]: evaluation of constant value failed
10
10
--> $DIR/const_panic_2021.rs:9:15
11
11
|
12
12
LL | const B: () = std::panic!();
13
-
| ^^^^^^^^^^^^^ explicit panic
13
+
| ^^^^^^^^^^^^^ panic: explicit panic
14
14
|
15
15
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the macro `$crate::panic::unreachable_2021` which comes from the expansion of the macro `std::unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)
24
24
25
25
error[E0080]: evaluation of constant value failed
26
26
--> $DIR/const_panic_2021.rs:15:15
27
27
|
28
28
LL | const D: () = std::unimplemented!();
29
-
| ^^^^^^^^^^^^^^^^^^^^^ not implemented
29
+
| ^^^^^^^^^^^^^^^^^^^^^ panic: not implemented
30
30
|
31
31
= note: this error originates in the macro `std::unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
32
32
33
33
error[E0080]: evaluation of constant value failed
34
34
--> $DIR/const_panic_2021.rs:18:15
35
35
|
36
36
LL | const E: () = std::panic!("{}", MSG);
37
-
| ^^^^^^^^^^^^^^^^^^^^^^ hello
37
+
| ^^^^^^^^^^^^^^^^^^^^^^ panic: hello
38
38
|
39
39
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
40
40
41
41
error[E0080]: evaluation of constant value failed
42
42
--> $DIR/const_panic_2021.rs:21:20
43
43
|
44
44
LL | const A_CORE: () = core::panic!("shark");
45
-
| ^^^^^^^^^^^^^^^^^^^^^ shark
45
+
| ^^^^^^^^^^^^^^^^^^^^^ panic: shark
46
46
|
47
47
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
48
48
49
49
error[E0080]: evaluation of constant value failed
50
50
--> $DIR/const_panic_2021.rs:24:20
51
51
|
52
52
LL | const B_CORE: () = core::panic!();
53
-
| ^^^^^^^^^^^^^^ explicit panic
53
+
| ^^^^^^^^^^^^^^ panic: explicit panic
54
54
|
55
55
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the macro `$crate::panic::unreachable_2021` which comes from the expansion of the macro `core::unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)
64
64
65
65
error[E0080]: evaluation of constant value failed
66
66
--> $DIR/const_panic_2021.rs:30:20
67
67
|
68
68
LL | const D_CORE: () = core::unimplemented!();
69
-
| ^^^^^^^^^^^^^^^^^^^^^^ not implemented
69
+
| ^^^^^^^^^^^^^^^^^^^^^^ panic: not implemented
70
70
|
71
71
= note: this error originates in the macro `core::unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
72
72
73
73
error[E0080]: evaluation of constant value failed
74
74
--> $DIR/const_panic_2021.rs:33:20
75
75
|
76
76
LL | const E_CORE: () = core::panic!("{}", MSG);
77
-
| ^^^^^^^^^^^^^^^^^^^^^^^ hello
77
+
| ^^^^^^^^^^^^^^^^^^^^^^^ panic: hello
78
78
|
79
79
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
Copy file name to clipboardExpand all lines: tests/ui/consts/const-eval/const_panic_libcore_bin.stderr
+3-3
Original file line number
Diff line number
Diff line change
@@ -2,23 +2,23 @@ error[E0080]: evaluation of constant value failed
2
2
--> $DIR/const_panic_libcore_bin.rs:8:15
3
3
|
4
4
LL | const Z: () = panic!("cheese");
5
-
| ^^^^^^^^^^^^^^^^ cheese
5
+
| ^^^^^^^^^^^^^^^^ panic: cheese
6
6
|
7
7
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the macro `$crate::panic::unreachable_2015` which comes from the expansion of the macro `unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)
16
16
17
17
error[E0080]: evaluation of constant value failed
18
18
--> $DIR/const_panic_libcore_bin.rs:14:15
19
19
|
20
20
LL | const X: () = unimplemented!();
21
-
| ^^^^^^^^^^^^^^^^ not implemented
21
+
| ^^^^^^^^^^^^^^^^ panic: not implemented
22
22
|
23
23
= note: this error originates in the macro `unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
Copy file name to clipboardExpand all lines: tests/ui/consts/const-eval/panic-assoc-never-type.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error[E0080]: evaluation of constant value failed
2
2
--> $DIR/panic-assoc-never-type.rs:9:21
3
3
|
4
4
LL | const VOID: ! = panic!();
5
-
| ^^^^^^^^ explicit panic
5
+
| ^^^^^^^^ panic: explicit panic
6
6
|
7
7
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
Copy file name to clipboardExpand all lines: tests/ui/consts/const-eval/panic-never-type.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error[E0080]: evaluation of constant value failed
2
2
--> $DIR/panic-never-type.rs:4:17
3
3
|
4
4
LL | const VOID: ! = panic!();
5
-
| ^^^^^^^^ explicit panic
5
+
| ^^^^^^^^ panic: explicit panic
6
6
|
7
7
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments