mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
Use rtabort
This commit is contained in:
@@ -299,8 +299,7 @@ fn synchronous_write(&self, buf: &[u8], offset: Option<u64>) -> io::Result<usize
|
||||
// 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!
|
||||
|
||||
Reference in New Issue
Block a user