Skip to content

Commit 048264e

Browse files
committed
Hide repr attribute from doc of types without guaranteed repr
1 parent c7f6aae commit 048264e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_simd/src/masks.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl_element! { isize }
8888
/// The layout of this type is unspecified, and may change between platforms
8989
/// and/or Rust versions, and code should not assume that it is equivalent to
9090
/// `[T; LANES]`.
91-
#[repr(transparent)]
91+
#[cfg_attr(not(doc), repr(transparent))] // work around https://github.com/rust-lang/rust/issues/90435
9292
pub struct Mask<T, const LANES: usize>(mask_impl::Mask<T, LANES>)
9393
where
9494
T: MaskElement,

0 commit comments

Comments
 (0)