From 56a94f060d521be1cf8b2bbc1d2c011451b16f05 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 26 Nov 2026 23:21:13 -0800 Subject: [PATCH] Runtime docs: a block's chunks name the Unix-only sparse_block without a link Block::_chunks is on every target, but sparse_block is #[cfg(unix)], so a private-items rustdoc for a Windows target could not resolve the intra-doc link (found by the Direct3D 11 hand-over lane's rustdoc of x86_64-pc-windows-gnullvm at 57dcc7f826). The field's doc now names the function as code, on Unix, and the comment is rewrapped to 100 columns. Docs only. Checked by a private-items rustdoc of metal2vulkan-runtime with -D warnings for x86_64-pc-windows-gnullvm, x86_64-pc-windows-msvc and the Linux host. --- crates/metal2vulkan-runtime/src/memory.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/memory.rs b/crates/metal2vulkan-runtime/src/memory.rs index b94c708a8..173e0858f 100644 --- a/crates/metal2vulkan-runtime/src/memory.rs +++ b/crates/metal2vulkan-runtime/src/memory.rs @@ -510,9 +510,9 @@ pub(crate) struct Block { /// The block whose allocation this block's buffer is bound in ([`surface_view`]): given back /// after this one, so the block-maker thread destroys the buffer before it frees the memory. _under: Option>, - /// An import over several dma-bufs' chunks, in order ([`sparse_block`]): given back after - /// this one, so the block-maker thread destroys the sparse buffer before it frees any of - /// their memory, the last of them holding the release. + /// An import over several dma-bufs' chunks, in order (`sparse_block`, on Unix): given back + /// after this one, so the block-maker thread destroys the sparse buffer before it frees any + /// of their memory, the last of them holding the release. _chunks: Vec, /// Of an exported block: set once a public call hands out a device address of its memory /// ([`address_out`](Self::address_out)), which the textures over it read at each submission