File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_codegen_ssa/src/back Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2612,7 +2612,7 @@ fn add_static_crate<'a>(
2612
2612
sess. target . no_builtins || !codegen_results. crate_info . is_no_builtins . contains ( & cnum) ;
2613
2613
2614
2614
let mut archive = archive_builder_builder. new_archive_builder ( sess) ;
2615
- if let Err ( e ) = archive. add_archive (
2615
+ if let Err ( error ) = archive. add_archive (
2616
2616
cratepath,
2617
2617
Box :: new ( move |f| {
2618
2618
if f == METADATA_FILENAME {
@@ -2652,7 +2652,7 @@ fn add_static_crate<'a>(
2652
2652
false
2653
2653
} ) ,
2654
2654
) {
2655
- sess. fatal ( & format ! ( "failed to build archive from rlib: {}" , e ) ) ;
2655
+ sess. emit_fatal ( errors :: RlibArchiveBuildFailure { error } ) ;
2656
2656
}
2657
2657
if archive. build ( & dst) {
2658
2658
link_upstream ( & dst) ;
You can’t perform that action at this time.
0 commit comments