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
85136dbe56
commit
02162c4163
3 changed files with 4 additions and 4 deletions
|
@ -716,7 +716,7 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
|
|||
&ongoing_codegen.coordinator_send,
|
||||
CachedModuleCodegen {
|
||||
name: cgu.name().to_string(),
|
||||
source: cgu.work_product(tcx),
|
||||
source: cgu.previous_work_product(tcx),
|
||||
},
|
||||
);
|
||||
true
|
||||
|
@ -727,7 +727,7 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
|
|||
&ongoing_codegen.coordinator_send,
|
||||
CachedModuleCodegen {
|
||||
name: cgu.name().to_string(),
|
||||
source: cgu.work_product(tcx),
|
||||
source: cgu.previous_work_product(tcx),
|
||||
},
|
||||
);
|
||||
true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue