Skip to content

Commit 81f7325

Browse files
committed
Rename CodegenUnit::work_product to previous_work_product
1 parent 21010f9 commit 81f7325

File tree

3 files changed

+4
-4
lines changed
  • compiler

3 files changed

+4
-4
lines changed

compiler/rustc_codegen_cranelift/src/driver/aot.rs

+1-1
Original file line numberDiff line numberDiff 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()));

compiler/rustc_codegen_ssa/src/base.rs

+2-2
Original file line numberDiff line numberDiff 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

compiler/rustc_middle/src/mir/mono.rs

+1-1
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)