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:
parent
e9d1e7d7fa
commit
8de99e631d
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ impl Scope {
|
||||||
// lifetime, and emit a warning otherwise (unless the
|
// lifetime, and emit a warning otherwise (unless the
|
||||||
// user explicitly chose to ignore it by prefixing the
|
// user explicitly chose to ignore it by prefixing the
|
||||||
// identifier with `_`)
|
// identifier with `_`)
|
||||||
if local.is_used() {
|
if !local.is_used() {
|
||||||
unused_spans.extend(local.span);
|
unused_spans.extend(local.span);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue