Skip to content

Commit b4c3ad1

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

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
@@ -1,3 +1,4 @@
1+
use crate::convert::{TryFrom, TryInto};
12
use crate::simd::{
23
cmp::SimdPartialOrd,
34
num::SimdUint,
@@ -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)