fix(tvix/eval): fix unused variable warnings being inverted

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>
This commit is contained in:
Yureka 2024-10-27 16:02:51 +01:00 committed by clbot
parent e9d1e7d7fa
commit 8de99e631d

View file

@ -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);
}