diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-04-30 20:51:17 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-04-30 20:51:17 +0200 |
| commit | ee94ff254aceccd27919f26c02541277a3ca7dd7 (patch) | |
| tree | 7334f45808f369a770827d9e8049da0ae05a983a /compiler/rustc_codegen_ssa/src/back/write.rs | |
| parent | 336bb0afea102a0e4ec7f56c364c7cd0d2acb902 (diff) | |
| download | rust-ee94ff254aceccd27919f26c02541277a3ca7dd7.tar.gz rust-ee94ff254aceccd27919f26c02541277a3ca7dd7.zip | |
Let LtoModuleCodegen::optimize take self by value
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back/write.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs index 98dc5fe8d64..88293dec01c 100644 --- a/compiler/rustc_codegen_ssa/src/back/write.rs +++ b/compiler/rustc_codegen_ssa/src/back/write.rs @@ -889,7 +889,7 @@ fn execute_copy_from_cache_work_item<B: ExtraBackendMethods>( fn execute_lto_work_item<B: ExtraBackendMethods>( cgcx: &CodegenContext<B>, - mut module: lto::LtoModuleCodegen<B>, + module: lto::LtoModuleCodegen<B>, module_config: &ModuleConfig, ) -> Result<WorkItemResult<B>, FatalError> { let module = unsafe { module.optimize(cgcx)? }; |
