From c2bbfed6281f5a8c390fa7095824c1ff4b8866ac Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 20 Nov 2026 22:50:36 -0800 Subject: [PATCH] rt test: the stencil export test matches the translator's refusal in Error::Translation's fields afd9686408 was written against Error::Translation's tuple form; 2c5573d598 made the variant a struct of the error and the functions, so the device-cfg test no longer compiled under --cfg m2v_gpu or m2v_cpu_icd. It now matches the refusal in the error field and ignores the functions. --- crates/metal2vulkan-runtime/src/tests/stencil_export.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-runtime/src/tests/stencil_export.rs b/crates/metal2vulkan-runtime/src/tests/stencil_export.rs index d33ff339c..be41cc53a 100644 --- a/crates/metal2vulkan-runtime/src/tests/stencil_export.rs +++ b/crates/metal2vulkan-runtime/src/tests/stencil_export.rs @@ -56,7 +56,13 @@ mod on_device { (true, Ok(state)) => state, (true, Err(error)) => panic!("{name}: {error}"), (false, Ok(_)) => panic!("{name}: a state made without the export"), - (false, Err(Error::Translation(metal2vulkan::error::Error::Unsupported(u)))) => { + ( + false, + Err(Error::Translation { + error: metal2vulkan::error::Error::Unsupported(u), + .. + }), + ) => { assert_eq!(u.feature, Feature::StencilExport, "{name}: {u:?}"); println!("{name}: no stencil export listed; refused naming StencilExport"); return;