We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7418d8e commit 5a34c16Copy full SHA for 5a34c16
rust/ql/src/queries/unusedentities/UnusedVariable.qll
@@ -10,6 +10,5 @@ predicate isUnused(Variable v) {
10
not exists(v.getAnAccess()) and
11
not exists(v.getInitializer()) and
12
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
+ not v.getPat().isInMacroExpansion()
15
}
0 commit comments