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 @@ -716,7 +716,7 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
716716 & ongoing_codegen. coordinator_send ,
717717 CachedModuleCodegen {
718718 name : cgu. name ( ) . to_string ( ) ,
719- source : cgu. work_product ( tcx) ,
719+ source : cgu. previous_work_product ( tcx) ,
720720 } ,
721721 ) ;
722722 true
@@ -727,7 +727,7 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
727727 & ongoing_codegen. coordinator_send ,
728728 CachedModuleCodegen {
729729 name : cgu. name ( ) . to_string ( ) ,
730- source : cgu. work_product ( tcx) ,
730+ source : cgu. previous_work_product ( tcx) ,
731731 } ,
732732 ) ;
733733 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