Skip to content

Commit 1288134

Browse files
committed
Fix gc-less build
1 parent 193283a commit 1288134

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

crates/wasmtime/src/runtime/vm/const_expr.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ impl ConstExprEvaluator {
222222

223223
self.stack.clear();
224224

225+
// On GC-less builds ensure that this is always considered used an
226+
// needed-mutable.
227+
let _ = &mut limiter;
228+
225229
for op in expr.ops() {
226230
log::trace!("const-evaluating op: {op:?}");
227231
match op {

0 commit comments

Comments
 (0)