Skip to content

Commit

Permalink
Use rtabort
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Apr 5, 2022
1 parent 88c05ed commit d2ce150
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/std/src/sys/windows/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit d2ce150

Please sign in to comment.