about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/archive.rs
diff options
context:
space:
mode:
authorEllis Hoag <ellis.sparky.hoag@gmail.com>2022-08-29 20:22:03 -0700
committerEllis Hoag <ellis.sparky.hoag@gmail.com>2022-09-24 10:24:48 -0700
commitfb488ad36605093d17ea22e9e533b2103559e376 (patch)
treef5051cdafceac52d5c1b47cb3195f438b7ffe6da /compiler/rustc_codegen_gcc/src/archive.rs
parent1ce482adda7f5b18ff6b107351565e31056fd8f3 (diff)
downloadrust-fb488ad36605093d17ea22e9e533b2103559e376.tar.gz
rust-fb488ad36605093d17ea22e9e533b2103559e376.zip
remove IntoDiagnosticArg impl for Option
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/archive.rs')
-rw-r--r--compiler/rustc_codegen_gcc/src/archive.rs2
1 files changed, 1 insertions, 1 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