From 1275063dc2fc79df5d840211a9f4aa6e3c613015 Mon Sep 17 00:00:00 2001 From: sofia Date: Mon, 4 Aug 2025 22:09:26 +0300 Subject: [PATCH] Pass associated functions as well as functions --- reid/src/mir/pass.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reid/src/mir/pass.rs b/reid/src/mir/pass.rs index 57fff34..6510542 100644 --- a/reid/src/mir/pass.rs +++ b/reid/src/mir/pass.rs @@ -450,6 +450,10 @@ impl Module { for function in &mut self.functions { function.pass(pass, state, &mut scope.inner(), self.module_id)?; } + + for (_, function) in &mut self.associated_functions { + function.pass(pass, state, &mut scope.inner(), self.module_id)?; + } Ok(()) } }