Skip to content

Commit d826229

Browse files
authored
Rollup merge of rust-lang#75771 - tmiasko:const-eval-query-stack-normalize, r=jonas-schievink
Extend normalization in const-eval-query-stack test Builds with debuginfo have additional information in backtrace.
2 parents ad15dc2 + 3b995cc commit d826229

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/test/ui/consts/const-eval/const-eval-query-stack.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
// normalize-stderr-test "note: rustc.*running on.*\n\n" -> ""
1010
// normalize-stderr-test "thread.*panicked.*\n" -> ""
1111
// normalize-stderr-test "stack backtrace:\n" -> ""
12-
// normalize-stderr-test " \d{1,}: .*\n" -> ""
12+
// normalize-stderr-test "\s\d{1,}: .*\n" -> ""
13+
// normalize-stderr-test "\s at .*\n" -> ""
1314
// normalize-stderr-test ".*note: Some details.*\n" -> ""
1415

1516
#![allow(unconditional_panic)]

src/test/ui/consts/const-eval/const-eval-query-stack.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: reaching this expression at runtime will panic or abort
2-
--> $DIR/const-eval-query-stack.rs:18:28
2+
--> $DIR/const-eval-query-stack.rs:19:28
33
|
44
LL | let x: &'static i32 = &(1 / 0);
55
| -^^^^^^^

0 commit comments

Comments
 (0)