-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17656 from geoffw0/unusedvar2
Rust: Diagnose unused variable false positives
- Loading branch information
Showing
7 changed files
with
774 additions
and
619 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
369 changes: 188 additions & 181 deletions
369
rust/ql/test/library-tests/variables/variables.expected
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 13 additions & 4 deletions
17
rust/ql/test/query-tests/unusedentities/UnusedVariable.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
| main.rs:23:9:23:9 | a | Variable is not used. | | ||
| main.rs:88:13:88:13 | d | Variable is not used. | | ||
| main.rs:112:9:112:9 | k | Variable is not used. | | ||
| main.rs:139:5:139:5 | y | Variable is not used. | | ||
| main.rs:25:9:25:9 | a | Variable is not used. | | ||
| main.rs:90:13:90:13 | d | Variable is not used. | | ||
| main.rs:114:9:114:9 | k | Variable is not used. | | ||
| main.rs:141:5:141:5 | y | Variable is not used. | | ||
| main.rs:164:9:164:9 | x | Variable is not used. | | ||
| main.rs:169:9:169:9 | x | Variable is not used. | | ||
| main.rs:174:9:174:9 | x | Variable is not used. | | ||
| main.rs:195:17:195:17 | a | Variable is not used. | | ||
| main.rs:203:20:203:22 | val | Variable is not used. | | ||
| main.rs:216:14:216:16 | val | Variable is not used. | | ||
| main.rs:218:9:218:12 | None | Variable is not used. | | ||
| main.rs:227:9:227:12 | None | Variable is not used. | | ||
| main.rs:233:24:233:26 | val | Variable is not used. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters