about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-04-30 20:58:42 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2022-04-30 20:58:42 +0200
commitc00ecf5d5dbc21db83eb1cd3e30ddda1f11079e3 (patch)
tree1f631a2e5b103069172a812574bf7cb245d14c40
parente2f645dd7f98ea47c291cdd3c7ca55771c8c26d3 (diff)
downloadrust-c00ecf5d5dbc21db83eb1cd3e30ddda1f11079e3.tar.gz
rust-c00ecf5d5dbc21db83eb1cd3e30ddda1f11079e3.zip
Remove config parameter of optimize_fat and avoid interior mutability for module
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 72da59a1bf8..684b845c38a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -229,7 +229,7 @@ impl WriteBackendMethods for GccCodegenBackend {
         Ok(())
     }
 
-    fn optimize_fat(_cgcx: &CodegenContext<Self>, _module: &ModuleCodegen<Self::Module>, _config: &ModuleConfig) -> Result<(), FatalError> {
+    fn optimize_fat(_cgcx: &CodegenContext<Self>, _module: &mut ModuleCodegen<Self::Module>) -> Result<(), FatalError> {
         // TODO(antoyo)
         Ok(())
     }