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/mod.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/tvix/eval/src/vm/mod.rs b/tvix/eval/src/vm/mod.rs
index 92fa0f00e3..febf1cb195 100644
--- a/tvix/eval/src/vm/mod.rs
+++ b/tvix/eval/src/vm/mod.rs
@@ -968,13 +968,11 @@ impl<'o> VM<'o> {
 
     /// Emit a warning with the given WarningKind and the source span
     /// of the current instruction.
-    pub fn emit_warning(&mut self, _kind: WarningKind) {
-        // TODO: put LightSpan in warning, calculate only *after* eval
-        // TODO: what to do with the spans?
-        // self.push_warning(EvalWarning {
-        //     kind,
-        //     span: self.current_span(),
-        // });
+    pub fn emit_warning(&mut self, kind: WarningKind) {
+        self.push_warning(EvalWarning {
+            kind,
+            span: self.get_span(),
+        });
     }
 
     /// Interpolate string fragments by popping the specified number of