From af97fa1bee631cb42f0728d7ba3bf9717fe232e6 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 21 Nov 2026 19:17:24 -0800 Subject: [PATCH] Validation: a context member's field name is read by the tests alone With the old executor's list and `named_member` gone, `Member::name` is read only by the enables tests (their messages and the opened-chains rendering), so it is `#[cfg(test)]`, as `Member::registry` is. Clippy -D warnings refused it as dead in job m3-max-65544 (all three configurations). Left for lane unshipped's item (5) (the robustBufferAccess / robustBufferAccess2 choice): coverage/tier_table.rs still compiles stated profiles for its robustness containment legs; this move does not change it. Verification: none at this commit; its compile job follows. --- .../src/candidate/platform/enables.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-validation/src/candidate/platform/enables.rs b/crates/metal2vulkan-validation/src/candidate/platform/enables.rs index 9bbd50f23..cb575782c 100644 --- a/crates/metal2vulkan-validation/src/candidate/platform/enables.rs +++ b/crates/metal2vulkan-validation/src/candidate/platform/enables.rs @@ -842,7 +842,9 @@ impl FeatureChain { /// One `VkBool32` member of a [`FeatureChain`] structure. pub(super) struct Member { pub(super) structure: Structure, - /// The member's field in its structure (ash's name for the `VkBool32`). + /// The member's field in its structure (ash's name for the `VkBool32`), which the tests + /// name members by. + #[cfg(test)] pub(super) name: &'static str, /// The engine's name for the member, when its vocabulary has one. pub(super) feature: Option, @@ -876,6 +878,7 @@ macro_rules! members { /// feature and names what was enabled. pub(super) const MEMBERS: &[Member] = &[$(Member { structure: Structure::$structure, + #[cfg(test)] name: stringify!($member), feature: $feature, #[cfg(test)]