Skip to content

Commit

Permalink
Extend normalization in const-eval-query-stack test
Browse files Browse the repository at this point in the history
Builds with debuginfo have additional information in backtrace.
  • Loading branch information
tmiasko committed Aug 21, 2020
1 parent 32cb8d4 commit 3b995cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/ui/consts/const-eval/const-eval-query-stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
// normalize-stderr-test "note: rustc.*running on.*\n\n" -> ""
// normalize-stderr-test "thread.*panicked.*\n" -> ""
// normalize-stderr-test "stack backtrace:\n" -> ""
// normalize-stderr-test " \d{1,}: .*\n" -> ""
// normalize-stderr-test "\s\d{1,}: .*\n" -> ""
// normalize-stderr-test "\s at .*\n" -> ""
// normalize-stderr-test ".*note: Some details.*\n" -> ""

#![allow(unconditional_panic)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: reaching this expression at runtime will panic or abort
--> $DIR/const-eval-query-stack.rs:18:28
--> $DIR/const-eval-query-stack.rs:19:28
|
LL | let x: &'static i32 = &(1 / 0);
| -^^^^^^^
Expand Down

0 comments on commit 3b995cc

Please sign in to comment.