about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
Diffstat (limited to 'tvix')
-rw-r--r--tvix/eval/src/compiler/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs
index b6a3f329a0..af64953f88 100644
--- a/tvix/eval/src/compiler/mod.rs
+++ b/tvix/eval/src/compiler/mod.rs
@@ -807,8 +807,9 @@ impl Compiler<'_, '_> {
         }
 
         // Second pass to place the values in the correct stack slots.
-        let indices: Vec<LocalIdx> = entries.iter().map(|(idx, _)| *idx).collect();
+        let mut indices: Vec<LocalIdx> = vec![];
         for (idx, value) in entries.into_iter() {
+            indices.push(idx);
             self.compile(idx, value);
 
             // Any code after this point will observe the value in the