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/compiler/attrs.rs2
-rw-r--r--tvix/eval/src/opcode.rs2
-rw-r--r--tvix/eval/src/vm.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/tvix/eval/src/compiler/attrs.rs b/tvix/eval/src/compiler/attrs.rs
index e2e932953b7c..f1441cff68d2 100644
--- a/tvix/eval/src/compiler/attrs.rs
+++ b/tvix/eval/src/compiler/attrs.rs
@@ -256,7 +256,7 @@ impl Compiler<'_, '_> {
 
         // After the last fragment, emit the actual instruction that
         // leaves a boolean on the stack.
-        self.push_op(OpCode::OpAttrsIsSet, &node);
+        self.push_op(OpCode::OpHasAttr, &node);
     }
 
     pub(super) fn compile_select(&mut self, slot: LocalIdx, node: ast::Select) {
diff --git a/tvix/eval/src/opcode.rs b/tvix/eval/src/opcode.rs
index 706aceac8357..9d7fba9ee453 100644
--- a/tvix/eval/src/opcode.rs
+++ b/tvix/eval/src/opcode.rs
@@ -91,7 +91,7 @@ pub enum OpCode {
     OpAttrsUpdate,
     OpAttrsSelect,
     OpAttrsTrySelect,
-    OpAttrsIsSet,
+    OpHasAttr,
 
     // `with`-handling
     OpPushWith(StackIdx),
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs
index 980a3ed0f5dd..a0eb7d8ad2ee 100644
--- a/tvix/eval/src/vm.rs
+++ b/tvix/eval/src/vm.rs
@@ -317,7 +317,7 @@ impl<'o> VM<'o> {
                     self.push(value);
                 }
 
-                OpCode::OpAttrsIsSet => {
+                OpCode::OpHasAttr => {
                     let key = fallible!(self, self.pop().to_str());
                     let result = match self.pop() {
                         Value::Attrs(attrs) => attrs.contains(key.as_str()),