We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b35d580 commit 8971fe4Copy full SHA for 8971fe4
tests/compiletests/src/main.rs
@@ -383,13 +383,10 @@ fn rust_flags(codegen_backend_path: &Path) -> String {
383
fn map_status_to_result(status: std::process::ExitStatus) -> io::Result<()> {
384
match status.success() {
385
true => Ok(()),
386
- false => Err(io::Error::new(
387
- io::ErrorKind::Other,
388
- format!(
389
- "process terminated with non-zero code: {}",
390
- status.code().unwrap_or(0)
391
- ),
392
- )),
+ false => Err(io::Error::other(format!(
+ "process terminated with non-zero code: {}",
+ status.code().unwrap_or(0)
+ ))),
393
}
394
395
0 commit comments