Skip to content

Commit

Permalink
Rust: More cleanup after merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffw0 committed Oct 8, 2024
1 parent 9e3f4cd commit 40096eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rust/ql/test/query-tests/unusedentities/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fn arrays() {

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

for k
for k // SPURIOUS: unused variable [macros not yet supported]
in ks
{
println!("lets use {}", k); // [unreachable FALSE POSITIVE]
Expand Down Expand Up @@ -251,12 +251,12 @@ fn main() {
arrays();
statics();
println!("lets use result {}", parameters(1, 2, 3));
loops();
if_lets();
loops();
if_lets();
unreachable_if();
unreachable_panic();
unreachable_match();
unreachable_loop();

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

0 comments on commit 40096eb

Please sign in to comment.