From 048264e0a32ca492cbc2d742e170f924e6f5ce13 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 4 Feb 2023 19:12:01 -0800 Subject: [PATCH] Hide repr attribute from doc of types without guaranteed repr --- crates/core_simd/src/masks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core_simd/src/masks.rs b/crates/core_simd/src/masks.rs index e58df80fca8..e0f3c7beef6 100644 --- a/crates/core_simd/src/masks.rs +++ b/crates/core_simd/src/masks.rs @@ -88,7 +88,7 @@ unsafe impl MaskElement for $ty {} /// The layout of this type is unspecified, and may change between platforms /// and/or Rust versions, and code should not assume that it is equivalent to /// `[T; LANES]`. -#[repr(transparent)] +#[cfg_attr(not(doc), repr(transparent))] // work around https://github.com/rust-lang/rust/issues/90435 pub struct Mask(mask_impl::Mask) where T: MaskElement,