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 | 02162c4163f5d1a0e3dc8b552aafaa92d652b279 (patch) | |
| tree | a0128bf5a074d9063575f7cea8c373065a0884be /compiler/rustc_codegen_ssa | |
| parent | 85136dbe56dbbd7cdbcb27886a03807ea265ecd1 (diff) | |
| download | rust-02162c4163f5d1a0e3dc8b552aafaa92d652b279.tar.gz rust-02162c4163f5d1a0e3dc8b552aafaa92d652b279.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.
Diffstat (limited to 'compiler/rustc_codegen_ssa')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/base.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/base.rs b/compiler/rustc_codegen_ssa/src/base.rs index 420adec456f..c52a908e90f 100644 --- a/compiler/rustc_codegen_ssa/src/base.rs +++ b/compiler/rustc_codegen_ssa/src/base.rs @@ -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 |
