diff options
Diffstat (limited to 'tvix')
-rw-r--r-- | tvix/eval/src/compiler/scope.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler/scope.rs b/tvix/eval/src/compiler/scope.rs index bb1784e67b74..b8cd855ecde5 100644 --- a/tvix/eval/src/compiler/scope.rs +++ b/tvix/eval/src/compiler/scope.rs @@ -366,7 +366,7 @@ impl Scope { // lifetime, and emit a warning otherwise (unless the // user explicitly chose to ignore it by prefixing the // identifier with `_`) - if local.is_used() { + if !local.is_used() { unused_spans.extend(local.span); } |