From ca3a20c37c87c0c8c8dffe36cbb567a2f78d7573 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Tue, 10 Nov 2026 02:03:15 -0800 Subject: [PATCH] Test: the margin helper lets go of its fields by name, so none reads as unused lavapipe's build of the runtime's tests warned that AtTheMargin's opener, used and ram are never read: let_go dropped them through the whole struct. It now takes them out by name and drops them in the same order, objects first. (cherry picked from commit 6ed67830696a855c7eda362c6c476e666793aa15) --- .../metal2vulkan-runtime/src/tests/host_ram_device.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/host_ram_device.rs b/crates/metal2vulkan-runtime/src/tests/host_ram_device.rs index e39504239..a45f70a0e 100644 --- a/crates/metal2vulkan-runtime/src/tests/host_ram_device.rs +++ b/crates/metal2vulkan-runtime/src/tests/host_ram_device.rs @@ -680,8 +680,14 @@ impl AtTheMargin { /// Let go of the RAM's use, the objects first: its keep-alive goes after the last chunk. fn let_go(self, objects: Vec) { - let dropped = Arc::clone(&self.dropped); - drop((objects, self)); + let AtTheMargin { + opener, + used, + ram, + dropped, + .. + } = self; + drop((objects, opener, used, ram)); assert!( settles(&dropped), "the keep-alive goes after the last chunk"