Skip to content

Commit 40096eb

Browse files
committed
Rust: More cleanup after merge.
1 parent 9e3f4cd commit 40096eb

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 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
114+
for k // SPURIOUS: unused variable [macros not yet supported]
115115
in ks
116116
{
117117
println!("lets use {}", k); // [unreachable FALSE POSITIVE]
@@ -251,12 +251,12 @@ fn main() {
251251
arrays();
252252
statics();
253253
println!("lets use result {}", parameters(1, 2, 3));
254-
loops();
255-
if_lets();
254+
loops();
255+
if_lets();
256256
unreachable_if();
257257
unreachable_panic();
258258
unreachable_match();
259259
unreachable_loop();
260260

261-
println!("lets use result {}", parameters(1, 2, 3));
261+
println!("lets use result {}", parameters(1, 2, 3));
262262
}

0 commit comments

Comments
 (0)