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>(
26122612 sess. target . no_builtins || !codegen_results. crate_info . is_no_builtins . contains ( & cnum) ;
26132613
26142614 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 (
26162616 cratepath,
26172617 Box :: new ( move |f| {
26182618 if f == METADATA_FILENAME {
@@ -2652,7 +2652,7 @@ fn add_static_crate<'a>(
26522652 false
26532653 } ) ,
26542654 ) {
2655- sess. fatal ( & format ! ( "failed to build archive from rlib: {}" , e ) ) ;
2655+ sess. emit_fatal ( errors :: RlibArchiveBuildFailure { error } ) ;
26562656 }
26572657 if archive. build ( & dst) {
26582658 link_upstream ( & dst) ;
You can’t perform that action at this time.
0 commit comments