about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
Diffstat (limited to 'tvix')
-rw-r--r--tvix/eval/src/compiler/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs
index bf5c55db2a0c..ffc7daf8e9b0 100644
--- a/tvix/eval/src/compiler/mod.rs
+++ b/tvix/eval/src/compiler/mod.rs
@@ -884,10 +884,11 @@ impl Compiler {
             if let Some(Local {
                 node: Some(node),
                 used,
+                name,
                 ..
             }) = self.scope_mut().locals.pop()
             {
-                if !used {
+                if !used && !name.starts_with('_') {
                     self.emit_warning(node, WarningKind::UnusedBinding);
                 }
             }