From 13c6ba8a9132d5ae3aa130b8579f9993d83d649a Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 3 Dec 2026 02:10:26 -0800 Subject: [PATCH] Tests: the half rounding test names its partition's element type 7d9aa2207f's partition left its element type to inference, which rustc could not settle (E0282, job m3-max-82776). It is now the conversion triple's reference. Test only. --- crates/metal2vulkan/src/lower/arith/tests/narrow.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan/src/lower/arith/tests/narrow.rs b/crates/metal2vulkan/src/lower/arith/tests/narrow.rs index 7e393f306..973d43e48 100644 --- a/crates/metal2vulkan/src/lower/arith/tests/narrow.rs +++ b/crates/metal2vulkan/src/lower/arith/tests/narrow.rs @@ -1223,7 +1223,8 @@ fn converted_half_rounding_is_the_exactly_rounded_half() { .map(|(r, a, _)| (*r, *a)) .collect(); let in_pair = |v: Value| widenings.iter().any(|(r, a)| *r == v || *a == v); - let (pair, rest): (Vec<_>, Vec<_>) = converts.iter().partition(|(r, _, _)| in_pair(*r)); + let (pair, rest): (Vec<&(Value, Value, Contraction)>, Vec<_>) = + converts.iter().partition(|c| in_pair(c.0)); assert!( !widenings.is_empty() && pair.iter().all(|c| c.2 == Contraction::Forbidden), "{name} {q:?}: the pair {pair:?}"