diff options
| author | Ellis Hoag <ellis.sparky.hoag@gmail.com> | 2022-08-29 20:22:03 -0700 |
|---|---|---|
| committer | Ellis Hoag <ellis.sparky.hoag@gmail.com> | 2022-09-24 10:24:48 -0700 |
| commit | fb488ad36605093d17ea22e9e533b2103559e376 (patch) | |
| tree | f5051cdafceac52d5c1b47cb3195f438b7ffe6da /compiler/rustc_codegen_gcc | |
| parent | 1ce482adda7f5b18ff6b107351565e31056fd8f3 (diff) | |
| download | rust-fb488ad36605093d17ea22e9e533b2103559e376.tar.gz rust-fb488ad36605093d17ea22e9e533b2103559e376.zip | |
remove IntoDiagnosticArg impl for Option
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/archive.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/errors.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/src/archive.rs b/compiler/rustc_codegen_gcc/src/archive.rs index 14a69c194e4..77fbb2c500e 100644 --- a/compiler/rustc_codegen_gcc/src/archive.rs +++ b/compiler/rustc_codegen_gcc/src/archive.rs @@ -183,7 +183,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> { std::process::Command::new("ranlib").arg(output).status().expect("Couldn't run ranlib"); if !status.success() { - self.config.sess.emit_fatal(RanlibFailure { exit_code: status.code() }); + self.config.sess.emit_fatal(RanlibFailure { exit_code: format!("{:?}", status.code()) }); } any_members diff --git a/compiler/rustc_codegen_gcc/src/errors.rs b/compiler/rustc_codegen_gcc/src/errors.rs index 490a209ead0..01de75976a3 100644 --- a/compiler/rustc_codegen_gcc/src/errors.rs +++ b/compiler/rustc_codegen_gcc/src/errors.rs @@ -4,7 +4,7 @@ use rustc_span::Span; #[derive(SessionDiagnostic)] #[diag(codegen_gcc::ranlib_failure)] pub(crate) struct RanlibFailure { - pub exit_code: Option<i32> + pub exit_code: String, } #[derive(SessionDiagnostic)] |
