Skip to content

Commit dfe6bfe

Browse files
committed
Update expected test output.
1 parent 348d451 commit dfe6bfe

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/test/ui/consts/const-eval/feature-gate-const_panic.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ LL | const Z: () = panic!("cheese");
99
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
1010

1111
error[E0658]: panicking in constants is unstable
12-
--> $DIR/feature-gate-const_panic.rs:9:15
12+
--> $DIR/feature-gate-const_panic.rs:6:15
1313
|
14-
LL | const X: () = unimplemented!();
15-
| ^^^^^^^^^^^^^^^^
14+
LL | const Y: () = unreachable!();
15+
| ^^^^^^^^^^^^^^
1616
|
1717
= note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information
1818
= help: add `#![feature(const_panic)]` to the crate attributes to enable
1919
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2020

2121
error[E0658]: panicking in constants is unstable
22-
--> $DIR/feature-gate-const_panic.rs:6:15
22+
--> $DIR/feature-gate-const_panic.rs:9:15
2323
|
24-
LL | const Y: () = unreachable!();
25-
| ^^^^^^^^^^^^^^
24+
LL | const X: () = unimplemented!();
25+
| ^^^^^^^^^^^^^^^^
2626
|
2727
= note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information
2828
= help: add `#![feature(const_panic)]` to the crate attributes to enable

src/test/ui/consts/const-eval/unwind-abort.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | panic!()
55
| ^^^^^^^^
66
| |
77
| the evaluated program panicked at 'explicit panic', $DIR/unwind-abort.rs:5:5
8-
| inside `foo` at $SRC_DIR/std/src/macros.rs:LL:COL
8+
| inside `foo` at $SRC_DIR/std/src/panic.rs:LL:COL
99
| inside `_` at $DIR/unwind-abort.rs:8:15
1010
...
1111
LL | const _: () = foo();

src/test/ui/consts/const-unwrap.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | None => panic!("called `Option::unwrap()` on a `None` value"),
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
| |
77
| the evaluated program panicked at 'called `Option::unwrap()` on a `None` value', $DIR/const-unwrap.rs:9:38
8-
| inside `Option::<i32>::unwrap` at $SRC_DIR/core/src/macros/mod.rs:LL:COL
8+
| inside `Option::<i32>::unwrap` at $SRC_DIR/core/src/panic.rs:LL:COL
99
| inside `BAR` at $DIR/const-unwrap.rs:9:18
1010
|
1111
::: $DIR/const-unwrap.rs:9:1

0 commit comments

Comments
 (0)