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.
This commit is contained in:
Anees Iqbal committed 2026-12-02 22:48:10 -08:00
1 parent fd93d1695f
commit 13d511cfe9
1 file changed
+1 -1
@@ -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<SValue> {
let msb = fb.glsl(GlslOp::FindUMsb, &[c])?;
let top = ku4(fb, n.map(|n| n - 1))?;