From d2ce150c8c28b69bf406deb0920fcb4ca0d950ae Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Mon, 4 Apr 2022 06:08:41 +0100 Subject: [PATCH] Use rtabort --- library/std/src/sys/windows/handle.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/std/src/sys/windows/handle.rs b/library/std/src/sys/windows/handle.rs index 2a0bffd6a8e9..ef9a8bd69003 100644 --- a/library/std/src/sys/windows/handle.rs +++ b/library/std/src/sys/windows/handle.rs @@ -299,8 +299,7 @@ impl Handle { // Doing otherwise means that the buffer may be read and the stack // written to after this function returns. c::STATUS_PENDING => { - eprintln!("I/O error: operation failed to complete synchronously"); - crate::process::abort(); + rtabort!("I/O error: operation failed to complete synchronously"); } // Success!