From f53edc0d55b2d8a47ec6d77ec7dca618dca3b8c5 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 18 Nov 2026 02:00:29 -0800 Subject: [PATCH] harness tests: the selection test's list of workloads does not shadow the function it calls The test named its list of workloads after workloads(), which its last loop calls: the test target did not compile (clippy, m3-max-45303). Verified by the check that follows. --- crates/metal2vulkan-harness/src/bin/harness.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-harness/src/bin/harness.rs b/crates/metal2vulkan-harness/src/bin/harness.rs index 274e260b9..d53d9e07b 100644 --- a/crates/metal2vulkan-harness/src/bin/harness.rs +++ b/crates/metal2vulkan-harness/src/bin/harness.rs @@ -648,19 +648,19 @@ mod tests { #[test] fn skip_leaves_out_what_only_would_run_and_the_creation_rows_split_apart() { - let workloads: Vec = (authored::WORKLOADS.iter()) + let every: Vec = (authored::WORKLOADS.iter()) .map(|workload| workload.name.to_owned()) .collect(); let creates: Vec<&str> = authored::CREATES.iter().map(|create| create.name).collect(); assert_eq!( selected(&["--runtime", "new", "--skip", "create_*"]), - (workloads.clone(), Vec::new()) + (every.clone(), Vec::new()) ); assert_eq!( selected(&["--runtime", "new", "--only", "create_*"]), (Vec::new(), creates.clone()) ); - assert_eq!(selected(&["--runtime", "new"]), (workloads, creates)); + assert_eq!(selected(&["--runtime", "new"]), (every, creates)); let first = authored::WORKLOADS[0].name; assert_eq!( selected(&["--runtime", "new", "--only", first, "--skip", first]),