Skip to content

Commit

Permalink
Merge pull request #370 from dtolnay-contrib/notdoctransparent
Browse files Browse the repository at this point in the history
Eliminate use of `#[cfg_attr(not(doc), repr(transparent))]`
  • Loading branch information
calebzulawski authored Oct 14, 2023
2 parents 4825b2a + 6a3c45e commit d21ba25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core_simd/src/masks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d21ba25

Please sign in to comment.