Skip to content

Commit 33bfcab

Browse files
committed
Rust: Accept test change.
1 parent 6ca90a2 commit 33bfcab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

rust/ql/test/query-tests/unusedentities/UnusedVariable.expected

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
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. |
@@ -10,7 +11,6 @@
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. |
@@ -19,3 +19,5 @@
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] |

rust/ql/test/query-tests/unusedentities/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)