@@ -70,7 +70,8 @@ impl<T: ?Sized> *mut T {
70
70
/// and cannot be created from one without additional context.
71
71
///
72
72
/// If you would like to treat a pointer like an integer anyway,
73
- /// see [`addr`][] and [`with_addr`][] for the responsible way to do that.
73
+ /// see [`addr`][#method.addr-1] and [`with_addr`][#method.with_addr-1] for
74
+ /// the responsible way to do that.
74
75
#[ unstable( feature = "ptr_to_from_bits" , issue = "91126" ) ]
75
76
pub fn to_bits ( self ) -> [ u8 ; core:: mem:: size_of :: < * mut ( ) > ( ) ]
76
77
where
@@ -112,7 +113,7 @@ impl<T: ?Sized> *mut T {
112
113
/// and is equivalent to the deprecated `ptr as usize` cast.
113
114
///
114
115
/// On more complicated platforms like CHERI and segmented architectures,
115
- /// this may remove some important metadata. See [`with_addr`][] for
116
+ /// this may remove some important metadata. See [`with_addr`][#method.with_addr-1 ] for
116
117
/// details on this distinction and why it's important.
117
118
#[ unstable( feature = "strict_provenance" , issue = "99999999" ) ]
118
119
pub fn addr ( self ) -> usize
@@ -125,8 +126,6 @@ impl<T: ?Sized> *mut T {
125
126
126
127
/// Creates a new pointer with the given address.
127
128
///
128
- /// See also: [`ptr::fake_alloc`][] and [`ptr::zst_exists`][].
129
- ///
130
129
/// This replaces the deprecated `usize as ptr` cast, which had
131
130
/// fundamentally broken semantics because it couldn't restore
132
131
/// *segment* and *provenance*.
0 commit comments