Skip to content

Commit ccaf2dd

Browse files
committed
Rust: Temporarily limit results (hopefully enough for the DCA job to cope).
1 parent 0304aa8 commit ccaf2dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ from Variable v
1414
where
1515
not exists(v.getAnAccess()) and
1616
not exists(v.getInitializer()) and
17-
not v.getName().charAt(0) = "_"
17+
not v.getName().charAt(0) = "_" and
18+
exists(File f | f.getBaseName() = "main.rs" | v.getLocation().getFile() = f) // temporarily severely limit results
1819
select v, "Variable is not used."

0 commit comments

Comments
 (0)