Skip to content

Commit 5a34c16

Browse files
committed
Rust: Remove the workaround in rust/unused-variable.
1 parent 7418d8e commit 5a34c16

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rust/ql/src/queries/unusedentities/UnusedVariable.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ predicate isUnused(Variable v) {
1010
not exists(v.getAnAccess()) and
1111
not exists(v.getInitializer()) and
1212
not v instanceof DiscardVariable and
13-
not v.getPat().isInMacroExpansion() and
14-
exists(File f | f.getBaseName() = "main.rs" | v.getLocation().getFile() = f) // temporarily severely limit results
13+
not v.getPat().isInMacroExpansion()
1514
}

0 commit comments

Comments
 (0)