diff --git a/crates/core_simd/src/masks.rs b/crates/core_simd/src/masks.rs index e58df80fca8..cab6badc6e5 100644 --- a/crates/core_simd/src/masks.rs +++ b/crates/core_simd/src/masks.rs @@ -88,6 +88,11 @@ 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]`. +/// +/// For a type with size guaranteed equal to `[T; LANES]`, use +/// `Simd`. For a type with size guaranteed to use 1 bit per +/// lane (padded up to the next integer type or), use [`ToBitMask::BitMask`] +/// or (with crate feature `generic_const_exprs`) `ToBitMaskArray::BitMaskArray`. #[repr(transparent)] pub struct Mask(mask_impl::Mask) where