about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-13T13·10+0300
committertazjin <tazjin@tvl.su>2022-09-13T14·41+0000
commit477015cfe38b4f51d0e4e579b547c506dcea0d44 (patch)
treec81acdc6d7910bf0b50cf4a28bd1c438763049bc
parent62623ef46ce6cf0a6e76806440b0321a7f3792a7 (diff)
refactor(tvix/eval): point `OpPushWith` span at namespace r/4843
Pointed out by sterni in cl/6395

Change-Id: I2dda2bb11fef702df05fd7a4fd93b9e717a85dad
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6567
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
-rw-r--r--tvix/eval/src/compiler/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs
index b22ab0a50663..07086c72fc29 100644
--- a/tvix/eval/src/compiler/mod.rs
+++ b/tvix/eval/src/compiler/mod.rs
@@ -759,7 +759,7 @@ impl Compiler<'_, '_> {
 
         self.scope_mut().push_with();
 
-        self.push_op(OpCode::OpPushWith(with_idx), &node);
+        self.push_op(OpCode::OpPushWith(with_idx), &node.namespace().unwrap());
 
         self.compile(slot, node.body().unwrap());