Merge pull request #370 from dtolnay-contrib/notdoctransparent

Eliminate use of `#[cfg_attr(not(doc), repr(transparent))]`
This commit is contained in:
Caleb Zulawski 2023-10-14 17:17:29 -04:00 committed by GitHub
commit d21ba251a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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]`.
#[cfg_attr(not(doc), repr(transparent))] // work around https://github.com/rust-lang/rust/issues/90435
#[repr(transparent)]
pub struct Mask<T, const LANES: usize>(mask_impl::Mask<T, LANES>)
where
T: MaskElement,