File tree Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
183
183
std:: process:: Command :: new ( "ranlib" ) . arg ( output) . status ( ) . expect ( "Couldn't run ranlib" ) ;
184
184
185
185
if !status. success ( ) {
186
- self . config . sess . emit_fatal ( RanlibFailure { exit_code : status. code ( ) } ) ;
186
+ self . config . sess . emit_fatal ( RanlibFailure { exit_code : format ! ( "{:?}" , status. code( ) ) } ) ;
187
187
}
188
188
189
189
any_members
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use rustc_span::Span;
4
4
#[ derive( SessionDiagnostic ) ]
5
5
#[ diag( codegen_gcc:: ranlib_failure) ]
6
6
pub ( crate ) struct RanlibFailure {
7
- pub exit_code : Option < i32 >
7
+ pub exit_code : String ,
8
8
}
9
9
10
10
#[ derive( SessionDiagnostic ) ]
Original file line number Diff line number Diff line change @@ -114,15 +114,6 @@ impl IntoDiagnosticArg for char {
114
114
}
115
115
}
116
116
117
- impl < T : IntoDiagnosticArg > IntoDiagnosticArg for Option < T > {
118
- fn into_diagnostic_arg ( self ) -> DiagnosticArgValue < ' static > {
119
- match self {
120
- Some ( t) => t. into_diagnostic_arg ( ) ,
121
- None => DiagnosticArgValue :: Str ( Cow :: Borrowed ( "None" ) ) ,
122
- }
123
- }
124
- }
125
-
126
117
impl IntoDiagnosticArg for Symbol {
127
118
fn into_diagnostic_arg ( self ) -> DiagnosticArgValue < ' static > {
128
119
self . to_ident_string ( ) . into_diagnostic_arg ( )
You can’t perform that action at this time.
0 commit comments