@@ -70,7 +70,8 @@ impl<T: ?Sized> *mut T {
7070 /// and cannot be created from one without additional context.
7171 ///
7272 /// 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.
7475 #[ unstable( feature = "ptr_to_from_bits" , issue = "91126" ) ]
7576 pub fn to_bits ( self ) -> [ u8 ; core:: mem:: size_of :: < * mut ( ) > ( ) ]
7677 where
@@ -112,7 +113,7 @@ impl<T: ?Sized> *mut T {
112113 /// and is equivalent to the deprecated `ptr as usize` cast.
113114 ///
114115 /// 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
116117 /// details on this distinction and why it's important.
117118 #[ unstable( feature = "strict_provenance" , issue = "99999999" ) ]
118119 pub fn addr ( self ) -> usize
@@ -125,8 +126,6 @@ impl<T: ?Sized> *mut T {
125126
126127 /// Creates a new pointer with the given address.
127128 ///
128- /// See also: [`ptr::fake_alloc`][] and [`ptr::zst_exists`][].
129- ///
130129 /// This replaces the deprecated `usize as ptr` cast, which had
131130 /// fundamentally broken semantics because it couldn't restore
132131 /// *segment* and *provenance*.
0 commit comments