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 @@ fn synchronous_write(&self, buf: &[u8], offset: Option) -> io::Result { - eprintln!("I/O error: operation failed to complete synchronously"); - crate::process::abort(); + rtabort!("I/O error: operation failed to complete synchronously"); } // Success!