Skip to content

Commit 644bdfb

Browse files
committed
Revert "Merge pull request #385 from workingjubilee/make-an-ass-out-of-u-and-me"
This reverts commit 6ad779c, reversing changes made to b2e1bcb.
1 parent a2dd4a3 commit 644bdfb

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

crates/core_simd/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
const_maybe_uninit_as_mut_ptr,
66
const_mut_refs,
77
convert_float_to_int,
8-
core_intrinsics,
98
decl_macro,
109
inline_const,
1110
intra_doc_pointers,

crates/core_simd/src/masks.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,7 @@ where
174174
#[must_use = "method returns a new mask and does not mutate the original value"]
175175
pub unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
176176
// 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-
}
177+
unsafe { Self(mask_impl::Mask::from_int_unchecked(value)) }
181178
}
182179

183180
/// Converts a vector of integers to a mask, where 0 represents `false` and -1

0 commit comments

Comments
 (0)