File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ pub trait SimdConstPtr: Copy + Sealed {
27
27
/// directly cast into a valid pointer.
28
28
///
29
29
/// 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`].
31
31
///
32
32
/// Equivalent to calling [`pointer::addr`] on each lane.
33
33
fn addr ( self ) -> Self :: Usize ;
@@ -41,12 +41,12 @@ pub trait SimdConstPtr: Copy + Sealed {
41
41
fn with_addr ( self , addr : Self :: Usize ) -> Self ;
42
42
43
43
/// 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`].
45
45
fn expose_addr ( self ) -> Self :: Usize ;
46
46
47
47
/// Convert an address back to a pointer, picking up a previously "exposed" provenance.
48
48
///
49
- /// Equivalent to calling [`pointer ::from_exposed_addr`] on each lane.
49
+ /// Equivalent to calling [`core::ptr ::from_exposed_addr`] on each lane.
50
50
fn from_exposed_addr ( addr : Self :: Usize ) -> Self ;
51
51
52
52
/// Calculates the offset from a pointer using wrapping arithmetic.
Original file line number Diff line number Diff line change @@ -38,12 +38,12 @@ pub trait SimdMutPtr: Copy + Sealed {
38
38
fn with_addr ( self , addr : Self :: Usize ) -> Self ;
39
39
40
40
/// 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`].
42
42
fn expose_addr ( self ) -> Self :: Usize ;
43
43
44
44
/// Convert an address back to a pointer, picking up a previously "exposed" provenance.
45
45
///
46
- /// Equivalent to calling [`pointer::from_exposed_addr `] on each lane.
46
+ /// Equivalent to calling [`core::ptr::from_exposed_addr_mut `] on each lane.
47
47
fn from_exposed_addr ( addr : Self :: Usize ) -> Self ;
48
48
49
49
/// Calculates the offset from a pointer using wrapping arithmetic.
Original file line number Diff line number Diff line change 7
7
repr_simd,
8
8
simd_ffi,
9
9
staged_api,
10
- stdsimd
10
+ stdsimd,
11
+ strict_provenance
11
12
) ]
12
13
#![ cfg_attr( feature = "generic_const_exprs" , feature( generic_const_exprs) ) ]
13
14
#![ cfg_attr( feature = "generic_const_exprs" , allow( incomplete_features) ) ]
You can’t perform that action at this time.
0 commit comments