Skip to content

Commit 3148b3d

Browse files
authored
Rollup merge of #102104 - Aaron1011:no-test-backtrace, r=Mark-Simulacrum
Set 'exec-env:RUST_BACKTRACE=0' in const-eval-select tests This allows the tests to pass even if the user has RUST_BACKTRACE set when running 'x.py'
2 parents dac0f6e + 3d8b3e6 commit 3148b3d

4 files changed

+4
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// See issue #100696.
22
// run-fail
33
// check-run-results
4+
// exec-env:RUST_BACKTRACE=0
45
fn main() {
56
&""[1..];
67
}
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
thread 'main' panicked at 'byte index 1 is out of bounds of ``', $DIR/const-eval-select-backtrace-std.rs:5:6
1+
thread 'main' panicked at 'byte index 1 is out of bounds of ``', $DIR/const-eval-select-backtrace-std.rs:6:6
22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

src/test/ui/intrinsics/const-eval-select-backtrace.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// See issue #100696.
33
// run-fail
44
// check-run-results
5+
// exec-env:RUST_BACKTRACE=0
56

67
#[track_caller]
78
fn uhoh() {
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
thread 'main' panicked at 'Aaah!', $DIR/const-eval-select-backtrace.rs:16:9
1+
thread 'main' panicked at 'Aaah!', $DIR/const-eval-select-backtrace.rs:17:9
22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

0 commit comments

Comments
 (0)