Skip to content

Commit d5cb2be

Browse files
committed
Rename CodegenUnit::work_product to previous_work_product
It returns the previous work product or panics if there is none. This rename makes the purpose of this method clearer.
1 parent ede985e commit d5cb2be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver/aot.rs

Lines changed: 1 addition & 1 deletion
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()));

0 commit comments

Comments
 (0)