about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tvix/eval/src/compiler/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs
index e8eb14ed15a4..f80a23935bcf 100644
--- a/tvix/eval/src/compiler/mod.rs
+++ b/tvix/eval/src/compiler/mod.rs
@@ -171,15 +171,15 @@ impl Compiler<'_> {
     fn compile_literal(&mut self, node: ast::Literal) {
         match node.kind() {
             ast::LiteralKind::Float(f) => {
-                self.emit_constant_old(Value::Float(f.value().unwrap()));
+                self.emit_constant(Value::Float(f.value().unwrap()), &node);
             }
 
             ast::LiteralKind::Integer(i) => {
-                self.emit_constant_old(Value::Integer(i.value().unwrap()));
+                self.emit_constant(Value::Integer(i.value().unwrap()), &node);
             }
             ast::LiteralKind::Uri(u) => {
                 self.emit_warning(node.syntax().clone(), WarningKind::DeprecatedLiteralURL);
-                self.emit_constant_old(Value::String(u.syntax().text().into()));
+                self.emit_constant(Value::String(u.syntax().text().into()), &node);
             }
         }
     }