Skip to content

Commit bd71675

Browse files
committed
Set RUST_BACKTRACE env variable
1 parent ccb0493 commit bd71675

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// compile-flags: -Ztreat-err-as-bug
22
// build-fail
33
// failure-status: 101
4+
// rustc-env:RUST_BACKTRACE=1
45
// normalize-stderr-test "\nerror: internal compiler error.*\n\n" -> ""
56
// normalize-stderr-test "note:.*unexpectedly panicked.*\n\n" -> ""
67
// normalize-stderr-test "note: we would appreciate a bug report.*\n\n" -> ""

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

Lines changed: 1 addition & 1 deletion
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:17:28
2+
--> $DIR/const-eval-query-stack.rs:18:28
33
|
44
LL | let x: &'static i32 = &(1 / 0);
55
| -^^^^^^^

0 commit comments

Comments
 (0)