about summary refs log tree commit diff
path: root/tvix/eval/src
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src')
-rw-r--r--tvix/eval/src/vm.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs
index 50dabf1ee8d5..e1f9d3096b89 100644
--- a/tvix/eval/src/vm.rs
+++ b/tvix/eval/src/vm.rs
@@ -741,11 +741,9 @@ impl<'o> VM<'o> {
         // Iterate over the captured with stack if one exists. This is
         // extra tricky to do without a lot of cloning.
         for idx in (0..self.frame().upvalues.with_stack_len()).rev() {
-            // This is safe because having an index here guarantees
+            // This will not panic because having an index here guarantees
             // that the stack is present.
-            let with =
-                unsafe { self.frame().upvalues.with_stack().unwrap_unchecked()[idx].clone() };
-
+            let with = self.frame().upvalues.with_stack().unwrap()[idx].clone();
             if let Value::Thunk(thunk) = &with {
                 fallible!(self, thunk.force(self));
             }