From 2028eb635697ff49b7bb87ccae1dea54d7423947 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 20 Nov 2026 16:25:06 -0800 Subject: [PATCH] Fix forward of 60749: the requirements test's loop over one kind Job 60749 (clippy and tests of metal2vulkan at 85ef8a373d) failed clippy alone: with ResourceKind::ExtendedShadow gone, the requirements test that a color's storage form writes are not the function's looped over one kind (clippy's single_element_loop). It now checks TileAttachment directly, and its name and doc lose the shadow. Its tests passed (557 of 557). No version or pin changes. Verified: nothing yet for this commit (a check job is owed). --- .../src/spirv/requirements/writes/tests.rs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/crates/metal2vulkan/src/spirv/requirements/writes/tests.rs b/crates/metal2vulkan/src/spirv/requirements/writes/tests.rs index a6c7630f1..ca37976ed 100644 --- a/crates/metal2vulkan/src/spirv/requirements/writes/tests.rs +++ b/crates/metal2vulkan/src/spirv/requirements/writes/tests.rs @@ -244,17 +244,12 @@ fn the_shadow_stencils_writes_are_not_the_functions() { assert!(writes_memory(&image_write(imageblock)).expect("another image")); } -/// A color's interlocked storage form and an extended-range color's `half` shadow are the -/// product's, carrying Metal's color attachment write, so their writes are not the function's; a -/// texture's write is. +/// A color's interlocked storage form is the product's, carrying Metal's color attachment write, +/// so its writes are not the function's; a texture's write is. #[test] -fn a_colors_storage_form_and_half_shadow_writes_are_not_the_functions() { - for kind in [ResourceKind::TileAttachment(2)] { - assert!( - !writes_memory(&image_write(kind)).expect("color"), - "{kind:?}" - ); - } +fn a_colors_storage_form_writes_are_not_the_functions() { + let color = ResourceKind::TileAttachment(2); + assert!(!writes_memory(&image_write(color)).expect("color")); assert!(writes_memory(&image_write(ResourceKind::Texture)).expect("a texture")); }