diff options
Diffstat (limited to 'tvix/eval')
-rw-r--r-- | tvix/eval/src/compiler/mod.rs | 2 | ||||
-rw-r--r-- | tvix/eval/src/compiler/scope.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs index 7ee262cad008..3e8a6aefd792 100644 --- a/tvix/eval/src/compiler/mod.rs +++ b/tvix/eval/src/compiler/mod.rs @@ -1067,8 +1067,6 @@ impl Compiler<'_, '_> { if popcount > 0 { self.push_op(OpCode::OpCloseScope(Count(popcount)), node); } - - self.scope_mut().scope_depth -= 1; } /// Open a new lambda context within which to compile a function, diff --git a/tvix/eval/src/compiler/scope.rs b/tvix/eval/src/compiler/scope.rs index e69922a33013..1909a8dc8a76 100644 --- a/tvix/eval/src/compiler/scope.rs +++ b/tvix/eval/src/compiler/scope.rs @@ -310,6 +310,8 @@ impl Scope { } } + self.scope_depth -= 1; + (pops, unused_spans) } } |