Skip to content

Commit fa35fe7

Browse files
committed
Work around stage1 vs. stage2 differences in miri
1 parent 882390b commit fa35fe7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/tools/miri/tests/panic/mir-validation.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
// Somehow on rustc Windows CI, the "Miri caused an ICE" message is not shown
99
// and we don't even get a regular panic; rustc aborts with a different exit code instead.
1010
//@ignore-host: windows
11+
12+
// FIXME: output is different between stage1 and stage2. This should be possible to remove
13+
// when stages get bumped.
14+
// For the grep: cfg(bootstrap)
15+
//@normalize-stderr-test: "thread 'rustc' panicked" -> "thread 'rustc' ($$HEX) panicked"
16+
1117
#![feature(custom_mir, core_intrinsics)]
1218
use core::intrinsics::mir::*;
1319

src/tools/miri/tests/panic/mir-validation.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
thread 'rustc' panicked at compiler/rustc_mir_transform/src/validate.rs:LL:CC:
2+
thread 'rustc' ($HEX) panicked at compiler/rustc_mir_transform/src/validate.rs:LL:CC:
33
broken MIR in Item(DefId) (after phase change to runtime-optimized) at bb0[1]:
44
place (*(_2.0: *mut i32)) has deref as a later projection (it is only permitted as the first projection)
55
stack backtrace:

0 commit comments

Comments
 (0)