File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
rustc_codegen_cranelift/src/driver Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ fn reuse_workproduct_for_cgu(
8585 work_products : & mut FxHashMap < WorkProductId , WorkProduct > ,
8686) -> CompiledModule {
8787 let mut object = None ;
88- let work_product = cgu. work_product ( tcx) ;
88+ let work_product = cgu. previous_work_product ( tcx) ;
8989 if let Some ( saved_file) = & work_product. saved_file {
9090 let obj_out =
9191 tcx. output_filenames ( ( ) ) . temp_path ( OutputType :: Object , Some ( cgu. name ( ) . as_str ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -700,7 +700,7 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
700700 & ongoing_codegen. coordinator_send ,
701701 CachedModuleCodegen {
702702 name : cgu. name ( ) . to_string ( ) ,
703- source : cgu. work_product ( tcx) ,
703+ source : cgu. previous_work_product ( tcx) ,
704704 } ,
705705 ) ;
706706 true
@@ -711,7 +711,7 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
711711 & ongoing_codegen. coordinator_send ,
712712 CachedModuleCodegen {
713713 name : cgu. name ( ) . to_string ( ) ,
714- source : cgu. work_product ( tcx) ,
714+ source : cgu. previous_work_product ( tcx) ,
715715 } ,
716716 ) ;
717717 true
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ impl<'tcx> CodegenUnit<'tcx> {
336336 WorkProductId :: from_cgu_name ( self . name ( ) . as_str ( ) )
337337 }
338338
339- pub fn work_product ( & self , tcx : TyCtxt < ' _ > ) -> WorkProduct {
339+ pub fn previous_work_product ( & self , tcx : TyCtxt < ' _ > ) -> WorkProduct {
340340 let work_product_id = self . work_product_id ( ) ;
341341 tcx. dep_graph
342342 . previous_work_product ( & work_product_id)
You can’t perform that action at this time.
0 commit comments