diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-05-13 10:32:03 +0000 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-06-06 12:30:10 +0000 |
| commit | d5cb2bee82c8bb8553406a0c98f08fa1bf51aad7 (patch) | |
| tree | 6184b0c2e6ab8081f194445f1cf1924331bef4d0 | |
| parent | ede985e8b811af92bb07412c838f3d2bde23f92f (diff) | |
| download | rust-d5cb2bee82c8bb8553406a0c98f08fa1bf51aad7.tar.gz rust-d5cb2bee82c8bb8553406a0c98f08fa1bf51aad7.zip | |
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.
| -rw-r--r-- | src/driver/aot.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/aot.rs b/src/driver/aot.rs index 5e1e1c81d26..0faf1221c83 100644 --- a/src/driver/aot.rs +++ b/src/driver/aot.rs @@ -85,7 +85,7 @@ fn reuse_workproduct_for_cgu( work_products: &mut FxHashMap<WorkProductId, WorkProduct>, ) -> CompiledModule { 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 { let obj_out = tcx.output_filenames(()).temp_path(OutputType::Object, Some(cgu.name().as_str())); |
