remove IntoDiagnosticArg impl for Option
This commit is contained in:
parent
1f3ae14c83
commit
ff9bf7b6b3
@ -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
|
||||
|
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user