diff options
| author | David Tolnay <dtolnay@gmail.com> | 2023-02-04 19:12:01 -0800 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2023-05-16 10:00:52 -0700 |
| commit | 048264e0a32ca492cbc2d742e170f924e6f5ce13 (patch) | |
| tree | d3e3721cd084520485de6835b7694d2e401e5aa2 | |
| parent | c7f6aae79c804e75a42e5aa23c7f82b8a9cf787c (diff) | |
| download | rust-048264e0a32ca492cbc2d742e170f924e6f5ce13.tar.gz rust-048264e0a32ca492cbc2d742e170f924e6f5ce13.zip | |
Hide repr attribute from doc of types without guaranteed repr
| -rw-r--r-- | crates/core_simd/src/masks.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/core_simd/src/masks.rs b/crates/core_simd/src/masks.rs index e58df80fca8..e0f3c7beef6 100644 --- a/crates/core_simd/src/masks.rs +++ b/crates/core_simd/src/masks.rs @@ -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, |
