about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorYureka <tvl@yuka.dev>2024-10-27T15·02+0100
committerclbot <clbot@tvl.fyi>2024-10-27T15·20+0000
commit8de99e631d9eb84761d3cdef71b25a58648c2227 (patch)
tree77aa9c54241f0610f4ad8d1ad379aeebd22cdcca /tvix
parente9d1e7d7fa4b869f3a6f4b1cc06fbec85b79935a (diff)
fix(tvix/eval): fix unused variable warnings being inverted r/8869
Thanks to lexi for finding this

Change-Id: Ic248af55426630b5e07183e4eac1596d52954478
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12696
Tested-by: BuildkiteCI
Autosubmit: yuka <yuka@yuka.dev>
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix')
-rw-r--r--tvix/eval/src/compiler/scope.rs2
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);
                 }