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 | e7963a65ed4b913274fcd0a0dec0c71c2754a97c (patch) | |
| tree | 8e82e2a7cfdc89b930f1ac91b23df3e61411d749 /library/portable-simd | |
| parent | 9239760da89cd8e9a51536beeb0a23762064037d (diff) | |
| download | rust-e7963a65ed4b913274fcd0a0dec0c71c2754a97c.tar.gz rust-e7963a65ed4b913274fcd0a0dec0c71c2754a97c.zip | |
Hide repr attribute from doc of types without guaranteed repr
Diffstat (limited to 'library/portable-simd')
| -rw-r--r-- | library/portable-simd/crates/core_simd/src/masks.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/portable-simd/crates/core_simd/src/masks.rs b/library/portable-simd/crates/core_simd/src/masks.rs index e58df80fca8..e0f3c7beef6 100644 --- a/library/portable-simd/crates/core_simd/src/masks.rs +++ b/library/portable-simd/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, |
