about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-01T13·59+0300
committertazjin <tazjin@tvl.su>2022-09-07T19·23+0000
commit3c4eed9b76f85b9e3adb396e2e9aa3669ad1a88f (patch)
tree8421a5b121c4bec987f5fd5526295230531c57b7 /tvix/eval
parenteaf7af18be44234a682e201b721dfb90c8d9fcca (diff)
feat(tvix/eval): track source spans for paths r/4714
Change-Id: I42fbd0bb6c2a8feb520e262a25f59ff27dcd035c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6381
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/compiler/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs
index f80a23935bcf..e672b0f5baba 100644
--- a/tvix/eval/src/compiler/mod.rs
+++ b/tvix/eval/src/compiler/mod.rs
@@ -217,7 +217,7 @@ impl Compiler<'_> {
         // TODO: Use https://github.com/rust-lang/rfcs/issues/2208
         // once it is available
         let value = Value::Path(path.clean());
-        self.emit_constant_old(value);
+        self.emit_constant(value, &node);
     }
 
     fn compile_str(&mut self, slot: Option<LocalIdx>, node: ast::Str) {