Skip to content

Commit 45a18ae

Browse files
committed
Revert layout guarantee
1 parent 728f375 commit 45a18ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/core_simd/src/masks.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ impl_element! { isize, usize }
118118
///
119119
/// Masks represent boolean inclusion/exclusion on a per-element basis.
120120
///
121-
/// The layout of this type is equivalent to `Simd<T, N>`, but elements
122-
/// are guaranteed to be either 0 or -1.
121+
/// The layout of this type is unspecified, and may change between platforms
122+
/// and/or Rust versions, and code should not assume that it is equivalent to
123+
/// `[T; N]`.
123124
#[repr(transparent)]
124125
pub struct Mask<T, const N: usize>(Simd<T, N>)
125126
where

0 commit comments

Comments
 (0)