1
Fork 0

Hide repr attribute from doc of types without guaranteed repr

This commit is contained in:
David Tolnay 2023-02-04 19:12:01 -08:00
parent 9239760da8
commit e7963a65ed
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
4 changed files with 10 additions and 10 deletions

View file

@ -88,7 +88,7 @@ impl_element! { isize }
/// 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,