Skip to content

Commit 03f6fbb

Browse files
Omit Simd::cast during bootstrap
1 parent 7072c22 commit 03f6fbb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/core_simd/src/intrinsics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ 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))]
4445
pub(crate) fn simd_as<T, U>(x: T) -> U;
4546

4647
/// neg/fneg

crates/core_simd/src/vector.rs

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ where
100100
/// ```
101101
#[must_use]
102102
#[inline]
103+
#[cfg(not(bootstrap))]
103104
pub fn cast<U: SimdElement>(self) -> Simd<U, LANES> {
104105
unsafe { intrinsics::simd_as(self) }
105106
}

0 commit comments

Comments
 (0)