about summary refs log tree commit diff
path: root/tvix/eval/src/vm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/vm.rs')
-rw-r--r--tvix/eval/src/vm.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs
index 17a7e0ce2758..400d85adac30 100644
--- a/tvix/eval/src/vm.rs
+++ b/tvix/eval/src/vm.rs
@@ -538,8 +538,9 @@ impl<'o> VM<'o> {
 
             OpCode::OpConcat => {
                 let rhs = fallible!(self, self.pop().to_list());
-                let lhs = fallible!(self, self.pop().to_list());
-                self.push(Value::List(lhs.concat(&rhs)))
+                let mut lhs = fallible!(self, self.pop().to_list()).into_vec();
+                lhs.extend_from_slice(&rhs);
+                self.push(Value::List(NixList::from(lhs)))
             }
 
             OpCode::OpInterpolate(Count(count)) => self.run_interpolate(count)?,