Hide repr attribute from doc of types without guaranteed repr
This commit is contained in:
parent
c7f6aae79c
commit
048264e0a3
@ -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<T, const LANES: usize>(mask_impl::Mask<T, LANES>)
|
||||
where
|
||||
T: MaskElement,
|
||||
|
Loading…
Reference in New Issue
Block a user