Skip to content

Commit 6736d7b

Browse files
committed
[portable-simd] Fix build break and doc test failure
1 parent ef4009d commit 6736d7b

File tree

1 file changed

+4
-3
lines changed
  • library/portable-simd/crates/core_simd/src

1 file changed

+4
-3
lines changed

library/portable-simd/crates/core_simd/src/vector.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use crate::simd::{
44
ptr::{SimdConstPtr, SimdMutPtr},
55
LaneCount, Mask, MaskElement, SupportedLaneCount, Swizzle,
66
};
7+
use core::convert::{TryFrom, TryInto};
78

89
/// A SIMD vector with the shape of `[T; N]` but the operations of `T`.
910
///
@@ -324,7 +325,7 @@ where
324325
/// # #![feature(portable_simd)]
325326
/// # #[cfg(feature = "as_crate")] use core_simd::simd;
326327
/// # #[cfg(not(feature = "as_crate"))] use core::simd;
327-
/// # use simd::{Simd, Mask};
328+
/// # use simd::Simd;
328329
/// let vec: Vec<i32> = vec![10, 11];
329330
///
330331
/// let result = Simd::<i32, 4>::load_or_default(&vec);
@@ -347,7 +348,7 @@ where
347348
/// # #![feature(portable_simd)]
348349
/// # #[cfg(feature = "as_crate")] use core_simd::simd;
349350
/// # #[cfg(not(feature = "as_crate"))] use core::simd;
350-
/// # use simd::{Simd, Mask};
351+
/// # use simd::Simd;
351352
/// let vec: Vec<i32> = vec![10, 11];
352353
/// let or = Simd::from_array([-5, -4, -3, -2]);
353354
///
@@ -694,7 +695,7 @@ where
694695
///
695696
/// # Safety
696697
///
697-
/// Memory addresses for element are calculated [`core::ptr::wrapping_offset`] and
698+
/// Memory addresses for element are calculated [`pointer::wrapping_offset`] and
698699
/// each enabled element must satisfy the same conditions as [`core::ptr::write`].
699700
#[inline]
700701
pub unsafe fn store_select_ptr(self, ptr: *mut T, enable: Mask<<T as SimdElement>::Mask, N>) {

0 commit comments

Comments
 (0)