@@ -73,9 +73,8 @@ fn reuse_workproduct_for_cgu(
73
73
let mut object = None ;
74
74
let work_product = cgu. work_product ( tcx) ;
75
75
if let Some ( saved_file) = & work_product. saved_file {
76
- let obj_out = tcx
77
- . output_filenames ( ( ) )
78
- . temp_path ( OutputType :: Object , Some ( & cgu. name ( ) . as_str ( ) ) ) ;
76
+ let obj_out =
77
+ tcx. output_filenames ( ( ) ) . temp_path ( OutputType :: Object , Some ( & cgu. name ( ) . as_str ( ) ) ) ;
79
78
object = Some ( obj_out. clone ( ) ) ;
80
79
let source_file = rustc_incremental:: in_incr_comp_dir ( & incr_comp_session_dir, & saved_file) ;
81
80
if let Err ( err) = rustc_fs_util:: link_or_copy ( & source_file, & obj_out) {
@@ -281,9 +280,8 @@ pub(crate) fn run_aot(
281
280
. as_str ( )
282
281
. to_string ( ) ;
283
282
284
- let tmp_file = tcx
285
- . output_filenames ( ( ) )
286
- . temp_path ( OutputType :: Metadata , Some ( & metadata_cgu_name) ) ;
283
+ let tmp_file =
284
+ tcx. output_filenames ( ( ) ) . temp_path ( OutputType :: Metadata , Some ( & metadata_cgu_name) ) ;
287
285
288
286
let obj = crate :: backend:: with_object ( tcx. sess , & metadata_cgu_name, |object| {
289
287
crate :: metadata:: write_metadata ( tcx, object) ;
@@ -358,8 +356,7 @@ fn codegen_global_asm(tcx: TyCtxt<'_>, cgu_name: &str, global_asm: &str) {
358
356
. collect :: < Vec < _ > > ( )
359
357
. join ( "\n " ) ;
360
358
361
- let output_object_file =
362
- tcx. output_filenames ( ( ) ) . temp_path ( OutputType :: Object , Some ( cgu_name) ) ;
359
+ let output_object_file = tcx. output_filenames ( ( ) ) . temp_path ( OutputType :: Object , Some ( cgu_name) ) ;
363
360
364
361
// Assemble `global_asm`
365
362
let global_asm_object_file = add_file_stem_postfix ( output_object_file. clone ( ) , ".asm" ) ;
0 commit comments