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(
85
85
work_products: &mut FxHashMap<WorkProductId, WorkProduct>,
86
86
) -> CompiledModule {
87
87
let mut object = None;
88
- let work_product = cgu.work_product (tcx);
88
+ let work_product = cgu.previous_work_product (tcx);
89
89
if let Some(saved_file) = &work_product.saved_file {
90
90
let obj_out =
91
91
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>(
716
716
&ongoing_codegen.coordinator_send,
717
717
CachedModuleCodegen {
718
718
name: cgu.name().to_string(),
719
- source: cgu.work_product (tcx),
719
+ source: cgu.previous_work_product (tcx),
720
720
},
721
721
);
722
722
true
@@ -727,7 +727,7 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
727
727
&ongoing_codegen.coordinator_send,
728
728
CachedModuleCodegen {
729
729
name: cgu.name().to_string(),
730
- source: cgu.work_product (tcx),
730
+ source: cgu.previous_work_product (tcx),
731
731
},
732
732
);
733
733
true
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ impl<'tcx> CodegenUnit<'tcx> {
336
336
WorkProductId::from_cgu_name(self.name().as_str())
337
337
}
338
338
339
- pub fn work_product (&self, tcx: TyCtxt<'_>) -> WorkProduct {
339
+ pub fn previous_work_product (&self, tcx: TyCtxt<'_>) -> WorkProduct {
340
340
let work_product_id = self.work_product_id();
341
341
tcx.dep_graph
342
342
.previous_work_product(&work_product_id)
You can’t perform that action at this time.
0 commit comments