We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2dd4a3 commit 644bdfbCopy full SHA for 644bdfb
crates/core_simd/src/lib.rs
@@ -5,7 +5,6 @@
5
const_maybe_uninit_as_mut_ptr,
6
const_mut_refs,
7
convert_float_to_int,
8
- core_intrinsics,
9
decl_macro,
10
inline_const,
11
intra_doc_pointers,
crates/core_simd/src/masks.rs
@@ -174,10 +174,7 @@ where
174
#[must_use = "method returns a new mask and does not mutate the original value"]
175
pub unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
176
// Safety: the caller must confirm this invariant
177
- unsafe {
178
- core::intrinsics::assume(<T as Sealed>::valid(value));
179
- Self(mask_impl::Mask::from_int_unchecked(value))
180
- }
+ unsafe { Self(mask_impl::Mask::from_int_unchecked(value)) }
181
}
182
183
/// Converts a vector of integers to a mask, where 0 represents `false` and -1
0 commit comments