From d29a50fbcb2438dcede6cf0d8676ebfcced3173e Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 18 Nov 2026 17:41:38 -0800 Subject: [PATCH] rt tests: the import tests' release is crate::memory::Release, which clippy's type_complexity takes c80eae3e98's check (m3-max-49028) passed everything but clippy under --cfg m2v_gpu and m2v_cpu_icd: releasing() returned (Option>, Arc), a type clippy::type_complexity refuses. The crate's own alias for that box names it. Verified: nothing yet; the next check job follows. The device legs run on c80eae3e98's archives, whose test code differs from this commit's only in the alias. --- crates/metal2vulkan-rt/src/tests/import.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-rt/src/tests/import.rs b/crates/metal2vulkan-rt/src/tests/import.rs index 5c578dea7..959547ed3 100644 --- a/crates/metal2vulkan-rt/src/tests/import.rs +++ b/crates/metal2vulkan-rt/src/tests/import.rs @@ -57,6 +57,7 @@ fn host_memory_takes_the_first_coherent_listed_type_offered() { /// On unix, where the tests map host memory themselves. #[cfg(all(unix, any(m2v_gpu, m2v_cpu_icd)))] mod on_device { + use crate::memory::Release; use crate::tests::command::on_device::{each_device, finished}; use crate::tests::devices_of_the_cfgs_kind; use crate::{Device, DeviceOptions, Error, ImportHandle, Limit, MemoryClass}; @@ -111,10 +112,10 @@ mod on_device { } /// A release that sets a flag, and the flag. - fn releasing() -> (Option>, Arc) { + fn releasing() -> (Option, Arc) { let ran = Arc::new(AtomicBool::new(false)); let set = Arc::clone(&ran); - let release: Box = Box::new(move || set.store(true, Ordering::SeqCst)); + let release: Release = Box::new(move || set.store(true, Ordering::SeqCst)); (Some(release), ran) }