Skip to content

Commit bbf31f9

Browse files
Mark-Simulacrumworkingjubilee
authored andcommitted
Finish bumping stage0
It looks like the last time had left some remaining cfg's -- which made me think that the stage0 bump was actually successful. This brings us to a released 1.62 beta though.
1 parent 64bef29 commit bbf31f9

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

crates/core_simd/src/intrinsics.rs

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ extern "platform-intrinsic" {
6262
pub(crate) fn simd_xor<T>(x: T, y: T) -> T;
6363

6464
/// getelementptr (without inbounds)
65-
#[cfg(not(bootstrap))]
6665
pub(crate) fn simd_arith_offset<T, U>(ptrs: T, offsets: U) -> T;
6766

6867
/// fptoui/fptosi/uitofp/sitofp

crates/core_simd/src/vector/ptr.rs

-19
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
//! Private implementation details of public gather/scatter APIs.
2-
#[cfg(not(bootstrap))]
32
use crate::simd::intrinsics;
43
use crate::simd::{LaneCount, Simd, SupportedLaneCount};
5-
#[cfg(bootstrap)]
6-
use core::mem;
74

85
/// A vector of *const T.
96
#[derive(Debug, Copy, Clone)]
@@ -24,14 +21,6 @@ where
2421
#[inline]
2522
#[must_use]
2623
pub fn wrapping_add(self, addend: Simd<usize, LANES>) -> Self {
27-
#[cfg(bootstrap)]
28-
// Safety: converting pointers to usize and vice-versa is safe
29-
// (even if using that pointer is not)
30-
unsafe {
31-
let x: Simd<usize, LANES> = mem::transmute_copy(&self);
32-
mem::transmute_copy(&{ x + (addend * Simd::splat(mem::size_of::<T>())) })
33-
}
34-
#[cfg(not(bootstrap))]
3524
// Safety: this intrinsic doesn't have a precondition
3625
unsafe { intrinsics::simd_arith_offset(self, addend) }
3726
}
@@ -56,14 +45,6 @@ where
5645
#[inline]
5746
#[must_use]
5847
pub fn wrapping_add(self, addend: Simd<usize, LANES>) -> Self {
59-
#[cfg(bootstrap)]
60-
// Safety: converting pointers to usize and vice-versa is safe
61-
// (even if using that pointer is not)
62-
unsafe {
63-
let x: Simd<usize, LANES> = mem::transmute_copy(&self);
64-
mem::transmute_copy(&{ x + (addend * Simd::splat(mem::size_of::<T>())) })
65-
}
66-
#[cfg(not(bootstrap))]
6748
// Safety: this intrinsic doesn't have a precondition
6849
unsafe { intrinsics::simd_arith_offset(self, addend) }
6950
}

0 commit comments

Comments
 (0)