From 53d2401f3f951a30b5da5941b7b2d7111934cfd9 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 25 Jan 2022 12:41:26 -0500 Subject: [PATCH] make Windows abort_internal Miri-compatible --- library/std/src/sys/windows/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/std/src/sys/windows/mod.rs b/library/std/src/sys/windows/mod.rs index 084af4325e7b3..ad4492f9d1f92 100644 --- a/library/std/src/sys/windows/mod.rs +++ b/library/std/src/sys/windows/mod.rs @@ -285,6 +285,7 @@ pub fn dur2timeout(dur: Duration) -> c::DWORD { #[allow(unreachable_code)] pub fn abort_internal() -> ! { const FAST_FAIL_FATAL_APP_EXIT: usize = 7; + #[cfg(not(miri))] // inline assembly does not work in Miri unsafe { cfg_if::cfg_if! { if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {