Skip to content

Commit 8adbb99

Browse files
Switch bootstrap cfgs
1 parent efb20c2 commit 8adbb99

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

crates/core_simd/src/intrinsics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ extern "platform-intrinsic" {
4141
pub(crate) fn simd_cast<T, U>(x: T) -> U;
4242
/// follows Rust's `T as U` semantics, including saturating float casts
4343
/// which amounts to the same as `simd_cast` for many cases
44-
#[cfg(not(bootstrap))]
4544
pub(crate) fn simd_as<T, U>(x: T) -> U;
4645

4746
/// neg/fneg

crates/core_simd/src/vector.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ where
6262
/// `from_slice` will panic if the slice's `len` is less than the vector's `Simd::LANES`.
6363
#[must_use]
6464
pub const fn from_slice(slice: &[T]) -> Self {
65-
assert!(
66-
slice.len() >= LANES,
67-
"slice length must be at least the number of lanes"
68-
);
65+
assert!(slice.len() >= LANES, "slice length must be at least the number of lanes");
6966
let mut array = [slice[0]; LANES];
7067
let mut i = 0;
7168
while i < LANES {
@@ -100,7 +97,6 @@ where
10097
/// ```
10198
#[must_use]
10299
#[inline]
103-
#[cfg(not(bootstrap))]
104100
pub fn cast<U: SimdElement>(self) -> Simd<U, LANES> {
105101
unsafe { intrinsics::simd_as(self) }
106102
}

0 commit comments

Comments
 (0)