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/traits | |
| 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/traits')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/traits/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/traits/write.rs b/compiler/rustc_codegen_ssa/src/traits/write.rs index 4914de20b05..ed0f6591809 100644 --- a/compiler/rustc_codegen_ssa/src/traits/write.rs +++ b/compiler/rustc_codegen_ssa/src/traits/write.rs @@ -48,7 +48,7 @@ pub trait WriteBackendMethods: 'static + Sized + Clone { ) -> Result<(), FatalError>; unsafe fn optimize_thin( cgcx: &CodegenContext<Self>, - thin: &mut ThinModule<Self>, + thin: ThinModule<Self>, ) -> Result<ModuleCodegen<Self::Module>, FatalError>; unsafe fn codegen( cgcx: &CodegenContext<Self>, |
