diff --git a/crates/compiler/mono/src/inc_dec.rs b/crates/compiler/mono/src/inc_dec.rs index d4c5a5abc7..56b543f612 100644 --- a/crates/compiler/mono/src/inc_dec.rs +++ b/crates/compiler/mono/src/inc_dec.rs @@ -672,14 +672,14 @@ impl<'a, 'i> Context<'a, 'i> { match ownership { DataOwnedFunctionOwns | DataBorrowedFunctionOwns => { // elements have been consumed, must still consume the list itself - let rest = self.arena.alloc($stmt); + let rest = self.arena.alloc(stmt); let rc = Stmt::Refcounting(ModifyRc::DecRef(argument), rest); stmt = self.arena.alloc(rc); } DataOwnedFunctionBorrows => { // must consume list and elements - let rest = self.arena.alloc($stmt); + let rest = self.arena.alloc(stmt); let rc = Stmt::Refcounting(ModifyRc::Dec(argument), rest); stmt = self.arena.alloc(rc);