summaryrefslogtreecommitdiff
path: root/library/portable-simd
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2022-02-23 08:06:22 -0500
committerMark Rousskov <mark.simulacrum@gmail.com>2022-02-25 08:00:52 -0500
commit22c3a71de1f798822594498559622407ed882d88 (patch)
treebb4315c823b1483d5e529dfd35718a613e2bc31b /library/portable-simd
parentea65f50c52cebd3e632a761fd033e0faceeb900f (diff)
downloadrust-22c3a71de1f798822594498559622407ed882d88.tar.gz
Switch bootstrap cfgs
Diffstat (limited to 'library/portable-simd')
-rw-r--r--library/portable-simd/crates/core_simd/src/intrinsics.rs1
-rw-r--r--library/portable-simd/crates/core_simd/src/vector.rs6
2 files changed, 1 insertions, 6 deletions
diff --git a/library/portable-simd/crates/core_simd/src/intrinsics.rs b/library/portable-simd/crates/core_simd/src/intrinsics.rs
index 233657202f7..2291400537c 100644
--- a/library/portable-simd/crates/core_simd/src/intrinsics.rs
+++ b/library/portable-simd/crates/core_simd/src/intrinsics.rs
@@ -41,7 +41,6 @@ extern "platform-intrinsic" {
pub(crate) fn simd_cast<T, U>(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<T, U>(x: T) -> U;
/// neg/fneg
diff --git a/library/portable-simd/crates/core_simd/src/vector.rs b/library/portable-simd/crates/core_simd/src/vector.rs
index b7ef7a56c73..35c5b6b84f8 100644
--- a/library/portable-simd/crates/core_simd/src/vector.rs
+++ b/library/portable-simd/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<U: SimdElement>(self) -> Simd<U, LANES> {
unsafe { intrinsics::simd_as(self) }
}