From 13d511cfe9dc5fe4a63fbda30f46052093f31e24 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 2 Dec 2026 22:48:10 -0800 Subject: [PATCH] Docs: unorm_values names its test as text, which a private-items doc build cannot link The doc comment of lower/texture/words.rs's unorm_values linked `tests::unorm_mirror`, an item of a cfg(test) module that no doc build has, so `cargo doc -p metal2vulkan --all-features --no-deps --document-private-items` under -D warnings stopped on rustdoc::broken-intra-doc-links. The test is named as code text instead. The public doc build, which the gate runs, did not see the link. Verified: m3-max-82334, fmt --check and the private-items doc build of metal2vulkan EXIT=0. --- crates/metal2vulkan/src/lower/texture/words.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/metal2vulkan/src/lower/texture/words.rs b/crates/metal2vulkan/src/lower/texture/words.rs index 8de757cb1..bd1031b39 100644 --- a/crates/metal2vulkan/src/lower/texture/words.rs +++ b/crates/metal2vulkan/src/lower/texture/words.rs @@ -1278,7 +1278,7 @@ pub(super) fn leftover(n: u32) -> u32 { /// its first 32 bits, `r` times the period pattern ([`rep_top`]) with the next period's top bits /// below ([`leftover`]), hold every bit the rounding to 24 reads, and a sticky 1 stands for the /// nonzero rest. `ConvertUToF` rounds them once, and `2^-(32 + z)` scales exactly; a code of 0 is -/// 0. [`tests::unorm_mirror`] checks every code of every width against the exact quotient. +/// 0. The test `tests::unorm_mirror` checks every code of every width against the exact quotient. fn unorm_values(fb: &mut FunctionBuilder<'_>, c: SValue, n: [u32; 4]) -> BResult { let msb = fb.glsl(GlslOp::FindUMsb, &[c])?; let top = ku4(fb, n.map(|n| n - 1))?;