diff --git a/crates/core_simd/src/intrinsics.rs b/crates/core_simd/src/intrinsics.rs index 233657202f7e..2291400537c9 100644 --- a/crates/core_simd/src/intrinsics.rs +++ b/crates/core_simd/src/intrinsics.rs @@ -41,7 +41,6 @@ extern "platform-intrinsic" { pub(crate) fn simd_cast(x: T) -> U; /// follows Rust's `T as U` semantics, including saturating float casts /// which amounts to the same as `simd_cast` for many cases - #[cfg(not(bootstrap))] pub(crate) fn simd_as(x: T) -> U; /// neg/fneg diff --git a/crates/core_simd/src/vector.rs b/crates/core_simd/src/vector.rs index b7ef7a56c731..35c5b6b84f81 100644 --- a/crates/core_simd/src/vector.rs +++ b/crates/core_simd/src/vector.rs @@ -62,10 +62,7 @@ where /// `from_slice` will panic if the slice's `len` is less than the vector's `Simd::LANES`. #[must_use] pub const fn from_slice(slice: &[T]) -> Self { - assert!( - slice.len() >= LANES, - "slice length must be at least the number of lanes" - ); + assert!(slice.len() >= LANES, "slice length must be at least the number of lanes"); let mut array = [slice[0]; LANES]; let mut i = 0; while i < LANES { @@ -100,7 +97,6 @@ where /// ``` #[must_use] #[inline] - #[cfg(not(bootstrap))] pub fn cast(self) -> Simd { unsafe { intrinsics::simd_as(self) } }