From c4256f21c728b8082c42deefa1f04f3fceb5103b Mon Sep 17 00:00:00 2001 From: Geoffrey White <40627776+geoffw0@users.noreply.github.com> Date: Fri, 11 Oct 2024 17:18:41 +0100 Subject: [PATCH] Rust: Fix out-of-date spurious tags. --- rust/ql/test/query-tests/unusedentities/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/ql/test/query-tests/unusedentities/main.rs b/rust/ql/test/query-tests/unusedentities/main.rs index 788918ffcba1..9b4fdb0cdd19 100644 --- a/rust/ql/test/query-tests/unusedentities/main.rs +++ b/rust/ql/test/query-tests/unusedentities/main.rs @@ -111,7 +111,7 @@ fn arrays() { println!("lets use {:?}", js); - for k // SPURIOUS: unused variable [macros not yet supported] + for k in ks { println!("lets use {}", k); // [unreachable FALSE POSITIVE] @@ -166,12 +166,12 @@ fn loops() { for _ in 1..10 {} - for x // SPURIOUS: unused variable [macros not yet supported] + for x in 1..10 { println!("x is {}", x); } - for x // SPURIOUS: unused variable [macros not yet supported] + for x in 1..10 { assert!(x != 11); }