about summary refs log tree commit diff
path: root/tvix/eval/src/compiler
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-11T12·01+0300
committertazjin <tazjin@tvl.su>2022-09-11T12·26+0000
commit43ec68d5ae6460f0653c21eb774ca53fa0865ccd (patch)
tree0336f9531e37b0d021f16759ddf827c2f35d0604 /tvix/eval/src/compiler
parent677d4e6881f4d97b4b491fc7277bd49efba4a693 (diff)
fix(tvix/eval): pass correct slot when compiling attr values r/4814
Change-Id: I90722d59dea4c7694eb5a7cf505db31196ba6c6c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6501
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval/src/compiler')
-rw-r--r--tvix/eval/src/compiler/attrs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler/attrs.rs b/tvix/eval/src/compiler/attrs.rs
index 6ad31ab850f1..d6bcfa5109b4 100644
--- a/tvix/eval/src/compiler/attrs.rs
+++ b/tvix/eval/src/compiler/attrs.rs
@@ -95,7 +95,7 @@ impl Compiler<'_, '_> {
             // is constructed at runtime.
             let value_span = self.span_for(&kv.value().unwrap());
             let value_slot = self.scope_mut().declare_phantom(value_span, false);
-            self.compile(slot, kv.value().unwrap());
+            self.compile(value_slot, kv.value().unwrap());
             self.scope_mut().mark_initialised(value_slot);
         }