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.
This commit is contained in:
parent
ede985e8b8
commit
d5cb2bee82
@ -85,7 +85,7 @@ fn reuse_workproduct_for_cgu(
|
|||||||
work_products: &mut FxHashMap<WorkProductId, WorkProduct>,
|
work_products: &mut FxHashMap<WorkProductId, WorkProduct>,
|
||||||
) -> CompiledModule {
|
) -> CompiledModule {
|
||||||
let mut object = None;
|
let mut object = None;
|
||||||
let work_product = cgu.work_product(tcx);
|
let work_product = cgu.previous_work_product(tcx);
|
||||||
if let Some(saved_file) = &work_product.saved_file {
|
if let Some(saved_file) = &work_product.saved_file {
|
||||||
let obj_out =
|
let obj_out =
|
||||||
tcx.output_filenames(()).temp_path(OutputType::Object, Some(cgu.name().as_str()));
|
tcx.output_filenames(()).temp_path(OutputType::Object, Some(cgu.name().as_str()));
|
||||||
|
Loading…
Reference in New Issue
Block a user