File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
rust/ql/test/query-tests/unusedentities Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ #select
12| main.rs:30:9:30:9 | a | Variable 'a' is not used. |
23| main.rs:99:13:99:13 | d | Variable 'd' is not used. |
34| main.rs:148:5:148:5 | y | Variable 'y' is not used. |
1011| main.rs:307:13:307:15 | num | Variable 'num' is not used. |
1112| main.rs:342:25:342:25 | y | Variable 'y' is not used. |
1213| main.rs:345:28:345:28 | a | Variable 'a' is not used. |
13- | main.rs:348:9:348:9 | p | Variable 'p' is not used. |
1414| main.rs:366:9:366:13 | right | Variable 'right' is not used. |
1515| main.rs:372:9:372:14 | right2 | Variable 'right2' is not used. |
1616| main.rs:383:13:383:13 | y | Variable 'y' is not used. |
1919| main.rs:439:21:439:23 | acc | Variable 'acc' is not used. |
2020| main.rs:460:9:460:14 | unused | Variable 'unused' is not used. |
2121| more.rs:24:9:24:11 | val | Variable 'val' is not used. |
22+ testFailures
23+ | main.rs:348:16:348:47 | //... | Missing result: Alert[rust/unused-variable] |
Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ fn if_lets_matches() {
345345 MyPoint { x : 3 , y : a } => { // $ Alert[rust/unused-variable]
346346 }
347347 MyPoint { x : 4 , .. } => { }
348- p => { // $ Alert[rust/unused-variable]
348+ p => { // $ MISSING: Alert[rust/unused-variable]
349349 }
350350 }
351351
You can’t perform that action at this time.
0 commit comments