Skip to content

Commit 6144a3e

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 b173c62 + 0810c3e commit 6144a3e

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
@@ -46,7 +46,7 @@ pub unsafe extern "C" fn __rust_start_panic(_payload: usize) -> u32 {
4646
}
4747
__rust_abort();
4848
}
49-
} else if #[cfg(windows)] {
49+
} else if #[cfg(all(windows, not(miri)))] {
5050
// On Windows, use the processor-specific __fastfail mechanism. In Windows 8
5151
// and later, this will terminate the process immediately without running any
5252
// in-process exception handlers. In earlier versions of Windows, this

0 commit comments

Comments
 (0)