-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 #17756 from geoffw0/unusedvar6
Rust: More test cases for rust/unused-variable
- Loading branch information
Showing
5 changed files
with
171 additions
and
26 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
rust/ql/test/query-tests/unusedentities/CONSISTENCY/CfgConsistency.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
multipleSuccessors | ||
| main.rs:428:17:428:17 | 0 | successor | main.rs:428:9:428:10 | a2 | | ||
| main.rs:428:17:428:17 | 0 | successor | main.rs:428:20:428:62 | ClosureExpr | | ||
| main.rs:431:17:431:17 | 0 | successor | main.rs:431:9:431:10 | a3 | | ||
| main.rs:431:17:431:17 | 0 | successor | main.rs:431:20:431:41 | ClosureExpr | | ||
| main.rs:434:17:434:17 | 0 | successor | main.rs:434:9:434:10 | a4 | | ||
| main.rs:434:17:434:17 | 0 | successor | main.rs:434:20:434:35 | ClosureExpr | | ||
| main.rs:437:17:437:17 | 0 | successor | main.rs:437:9:437:10 | a5 | | ||
| main.rs:437:17:437:17 | 0 | successor | main.rs:437:20:437:35 | ClosureExpr | | ||
| main.rs:441:17:441:17 | 0 | successor | main.rs:441:9:441:10 | a6 | | ||
| main.rs:441:17:441:17 | 0 | successor | main.rs:441:20:441:46 | ClosureExpr | |
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
32 changes: 19 additions & 13 deletions
32
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,16 +1,22 @@ | ||
| main.rs:25:9:25:9 | a | Variable is not used. | | ||
| main.rs:90:13:90:13 | d | 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:202:17:202:17 | a | Variable is not used. | | ||
| main.rs:210:20:210:22 | val | Variable is not used. | | ||
| main.rs:223:14:223:16 | val | Variable is not used. | | ||
| main.rs:240:22:240:24 | val | Variable is not used. | | ||
| main.rs:248:24:248:26 | val | Variable is not used. | | ||
| main.rs:257:13:257:15 | num | Variable is not used. | | ||
| main.rs:272:12:272:12 | j | Variable is not used. | | ||
| main.rs:294:25:294:25 | y | Variable is not used. | | ||
| main.rs:298:28:298:28 | a | Variable is not used. | | ||
| main.rs:302:9:302:9 | p | Variable is not used. | | ||
| main.rs:309:13:309:13 | y | Variable is not used. | | ||
| main.rs:317:21:317:21 | y | Variable is not used. | | ||
| main.rs:168:9:168:9 | x | Variable is not used. | | ||
| main.rs:196:9:196:9 | x | Variable is not used. | | ||
| main.rs:201:9:201:9 | x | Variable is not used. | | ||
| main.rs:250:17:250:17 | a | Variable is not used. | | ||
| main.rs:258:20:258:22 | val | Variable is not used. | | ||
| main.rs:271:14:271:16 | val | Variable is not used. | | ||
| main.rs:288:22:288:24 | val | Variable is not used. | | ||
| main.rs:296:24:296:26 | val | Variable is not used. | | ||
| main.rs:305:13:305:15 | num | Variable is not used. | | ||
| main.rs:320:12:320:12 | j | Variable is not used. | | ||
| main.rs:342:25:342:25 | y | Variable is not used. | | ||
| main.rs:346:28:346:28 | a | Variable is not used. | | ||
| main.rs:350:9:350:9 | p | Variable is not used. | | ||
| main.rs:365:9:365:13 | right | Variable is not used. | | ||
| main.rs:371:9:371:14 | right2 | Variable is not used. | | ||
| main.rs:378:13:378:13 | y | Variable is not used. | | ||
| main.rs:386:21:386:21 | y | Variable is not used. | | ||
| main.rs:434:27:434:29 | val | Variable is not used. | | ||
| main.rs:437:22:437:24 | acc | 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
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