Skip to content

Commit e5db1ec

Browse files
committed
Fix documentation
1 parent dadf98a commit e5db1ec

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

crates/core_simd/src/elements/const_ptr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub trait SimdConstPtr: Copy + Sealed {
2727
/// directly cast into a valid pointer.
2828
///
2929
/// This method semantically discards *provenance* and
30-
/// *address-space* information. To properly restore that information, use [`with_addr`].
30+
/// *address-space* information. To properly restore that information, use [`Self::with_addr`].
3131
///
3232
/// Equivalent to calling [`pointer::addr`] on each lane.
3333
fn addr(self) -> Self::Usize;
@@ -41,12 +41,12 @@ pub trait SimdConstPtr: Copy + Sealed {
4141
fn with_addr(self, addr: Self::Usize) -> Self;
4242

4343
/// Gets the "address" portion of the pointer, and "exposes" the provenance part for future use
44-
/// in [`from_exposed_addr`].
44+
/// in [`Self::from_exposed_addr`].
4545
fn expose_addr(self) -> Self::Usize;
4646

4747
/// Convert an address back to a pointer, picking up a previously "exposed" provenance.
4848
///
49-
/// Equivalent to calling [`pointer::from_exposed_addr`] on each lane.
49+
/// Equivalent to calling [`core::ptr::from_exposed_addr`] on each lane.
5050
fn from_exposed_addr(addr: Self::Usize) -> Self;
5151

5252
/// Calculates the offset from a pointer using wrapping arithmetic.

crates/core_simd/src/elements/mut_ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ pub trait SimdMutPtr: Copy + Sealed {
3838
fn with_addr(self, addr: Self::Usize) -> Self;
3939

4040
/// Gets the "address" portion of the pointer, and "exposes" the provenance part for future use
41-
/// in [`from_exposed_addr`].
41+
/// in [`Self::from_exposed_addr`].
4242
fn expose_addr(self) -> Self::Usize;
4343

4444
/// Convert an address back to a pointer, picking up a previously "exposed" provenance.
4545
///
46-
/// Equivalent to calling [`pointer::from_exposed_addr`] on each lane.
46+
/// Equivalent to calling [`core::ptr::from_exposed_addr_mut`] on each lane.
4747
fn from_exposed_addr(addr: Self::Usize) -> Self;
4848

4949
/// Calculates the offset from a pointer using wrapping arithmetic.

crates/core_simd/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
repr_simd,
88
simd_ffi,
99
staged_api,
10-
stdsimd
10+
stdsimd,
11+
strict_provenance
1112
)]
1213
#![cfg_attr(feature = "generic_const_exprs", feature(generic_const_exprs))]
1314
#![cfg_attr(feature = "generic_const_exprs", allow(incomplete_features))]

0 commit comments

Comments
 (0)