Skip to content

Commit 25b592f

Browse files
authored
Merge pull request #17744 from geoffw0/unusedvar5
Rust: Unused variable follow-up work
2 parents 5115216 + c4256f2 commit 25b592f

File tree

1 file changed

+3
-3
lines changed
  • rust/ql/test/query-tests/unusedentities

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn arrays() {
111111

112112
println!("lets use {:?}", js);
113113

114-
for k // SPURIOUS: unused variable [macros not yet supported]
114+
for k
115115
in ks
116116
{
117117
println!("lets use {}", k); // [unreachable FALSE POSITIVE]
@@ -166,12 +166,12 @@ fn loops() {
166166

167167
for _ in 1..10 {}
168168

169-
for x // SPURIOUS: unused variable [macros not yet supported]
169+
for x
170170
in 1..10 {
171171
println!("x is {}", x);
172172
}
173173

174-
for x // SPURIOUS: unused variable [macros not yet supported]
174+
for x
175175
in 1..10 {
176176
assert!(x != 11);
177177
}

0 commit comments

Comments
 (0)