about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authorChris Denton <christophersdenton@gmail.com>2022-04-04 06:08:41 +0100
committerChris Denton <christophersdenton@gmail.com>2022-04-05 08:17:48 +0100
commitd2ce150c8c28b69bf406deb0920fcb4ca0d950ae (patch)
tree2d1c8e22bc88075725eade8265140556850b0f53 /library/std
parent88c05edc9deb6def7ed4b1370cca6ddb79da8424 (diff)
downloadrust-d2ce150c8c28b69bf406deb0920fcb4ca0d950ae.tar.gz
rust-d2ce150c8c28b69bf406deb0920fcb4ca0d950ae.zip
Use rtabort
Diffstat (limited to 'library/std')
-rw-r--r--library/std/src/sys/windows/handle.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/sys/windows/handle.rs b/library/std/src/sys/windows/handle.rs
index 2a0bffd6a8e..ef9a8bd6900 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!