File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
rust/ql/test/query-tests/unusedentities Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 14
14
| main.rs:284:13:284:17 | total | Variable $@ is assigned a value that is never used. | main.rs:252:13:252:17 | total | total |
15
15
| main.rs:377:9:377:9 | x | Variable $@ is assigned a value that is never used. | main.rs:377:9:377:9 | x | x |
16
16
| main.rs:385:17:385:17 | x | Variable $@ is assigned a value that is never used. | main.rs:385:17:385:17 | x | x |
17
- | main.rs:550 :9:550 :20 | var_in_macro | Variable $@ is assigned a value that is never used. | main.rs:550 :9:550 :20 | var_in_macro | var_in_macro |
18
- | main.rs:559 :9:559 :9 | c | Variable $@ is assigned a value that is never used. | main.rs:559 :9:559 :9 | c | c |
17
+ | main.rs:556 :9:556 :20 | var_in_macro | Variable $@ is assigned a value that is never used. | main.rs:556 :9:556 :20 | var_in_macro | var_in_macro |
18
+ | main.rs:565 :9:565 :9 | c | Variable $@ is assigned a value that is never used. | main.rs:565 :9:565 :9 | c | c |
19
19
| more.rs:44:9:44:14 | a_ptr4 | Variable $@ is assigned a value that is never used. | more.rs:44:9:44:14 | a_ptr4 | a_ptr4 |
20
20
| more.rs:59:9:59:13 | d_ptr | Variable $@ is assigned a value that is never used. | more.rs:59:9:59:13 | d_ptr | d_ptr |
21
21
| more.rs:65:13:65:17 | f_ptr | Variable $@ is assigned a value that is never used. | more.rs:65:13:65:17 | f_ptr | f_ptr |
Original file line number Diff line number Diff line change @@ -513,7 +513,13 @@ fn macros3() {
513
513
}
514
514
515
515
fn macros4 ( ) {
516
+ {
517
+ let a: u16 = 6 ; // $ MISSING: Alert[rust/unused-variable]
518
+ }
519
+
516
520
undefined_macro_call ! ( 5 ) ;
521
+
522
+ let b: u16 = 6 ; // $ MISSING: Alert[rust/unused-variable]
517
523
}
518
524
519
525
fn macros5 ( ) {
You can’t perform that action at this time.
0 commit comments