Skip to content

Commit e5be14c

Browse files
authored
Rollup merge of rust-lang#76871 - RalfJung:miri-panic-abort, r=dtolnay
support panic=abort in Miri This is needed for rust-lang/miri#1058 on Windows: we cannot run the inline-assembly versions of `abort`, so fall back to the intrinsic (which Miri supports).
2 parents 70f55a7 + 0810c3e commit e5be14c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/panic_abort/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub unsafe extern "C" fn __rust_start_panic(_payload: usize) -> u32 {
4747
}
4848
__rust_abort();
4949
}
50-
} else if #[cfg(windows)] {
50+
} else if #[cfg(all(windows, not(miri)))] {
5151
// On Windows, use the processor-specific __fastfail mechanism. In Windows 8
5252
// and later, this will terminate the process immediately without running any
5353
// in-process exception handlers. In earlier versions of Windows, this

0 commit comments

Comments
 (0)