@@ -109,7 +109,7 @@ impl<T: ?Sized> *mut T {
109
109
/// with [`cast_mut`] on `*const T` and may have documentation value if used instead of implicit
110
110
/// coercion.
111
111
///
112
- /// [`cast_mut`]: #method. cast_mut
112
+ /// [`cast_mut`]: pointer:: cast_mut
113
113
#[ stable( feature = "ptr_const_cast" , since = "1.65.0" ) ]
114
114
#[ rustc_const_stable( feature = "ptr_const_cast" , since = "1.65.0" ) ]
115
115
#[ rustc_diagnostic_item = "ptr_cast_const" ]
@@ -121,7 +121,7 @@ impl<T: ?Sized> *mut T {
121
121
/// Casts a pointer to its raw bits.
122
122
///
123
123
/// This is equivalent to `as usize`, but is more specific to enhance readability.
124
- /// The inverse method is [`from_bits`](#method.from_bits-1).
124
+ /// The inverse method is [`from_bits`](pointer #method.from_bits-1).
125
125
///
126
126
/// In particular, `*p as usize` and `p as usize` will both compile for
127
127
/// pointers to numeric types but do very different things, so using this
@@ -157,7 +157,7 @@ impl<T: ?Sized> *mut T {
157
157
/// Creates a pointer from its raw bits.
158
158
///
159
159
/// This is equivalent to `as *mut T`, but is more specific to enhance readability.
160
- /// The inverse method is [`to_bits`](#method.to_bits-1).
160
+ /// The inverse method is [`to_bits`](pointer #method.to_bits-1).
161
161
///
162
162
/// # Examples
163
163
///
@@ -307,7 +307,7 @@ impl<T: ?Sized> *mut T {
307
307
///
308
308
/// For the mutable counterpart see [`as_mut`].
309
309
///
310
- /// [`as_uninit_ref`]: #method.as_uninit_ref-1
310
+ /// [`as_uninit_ref`]: pointer #method.as_uninit_ref-1
311
311
/// [`as_mut`]: #method.as_mut
312
312
///
313
313
/// # Safety
@@ -373,7 +373,7 @@ impl<T: ?Sized> *mut T {
373
373
///
374
374
/// For the mutable counterpart see [`as_uninit_mut`].
375
375
///
376
- /// [`as_ref`]: #method.as_ref-1
376
+ /// [`as_ref`]: pointer #method.as_ref-1
377
377
/// [`as_uninit_mut`]: #method.as_uninit_mut
378
378
///
379
379
/// # Safety
@@ -628,7 +628,7 @@ impl<T: ?Sized> *mut T {
628
628
/// For the shared counterpart see [`as_ref`].
629
629
///
630
630
/// [`as_uninit_mut`]: #method.as_uninit_mut
631
- /// [`as_ref`]: #method.as_ref-1
631
+ /// [`as_ref`]: pointer #method.as_ref-1
632
632
///
633
633
/// # Safety
634
634
///
@@ -693,7 +693,7 @@ impl<T: ?Sized> *mut T {
693
693
/// For the shared counterpart see [`as_uninit_ref`].
694
694
///
695
695
/// [`as_mut`]: #method.as_mut
696
- /// [`as_uninit_ref`]: #method.as_uninit_ref-1
696
+ /// [`as_uninit_ref`]: pointer #method.as_uninit_ref-1
697
697
///
698
698
/// # Safety
699
699
///
@@ -783,7 +783,7 @@ impl<T: ?Sized> *mut T {
783
783
///
784
784
/// This function is the inverse of [`offset`].
785
785
///
786
- /// [`offset`]: #method.offset-1
786
+ /// [`offset`]: pointer #method.offset-1
787
787
///
788
788
/// # Safety
789
789
///
@@ -2064,7 +2064,7 @@ impl<T> *mut [T] {
2064
2064
///
2065
2065
/// For the mutable counterpart see [`as_uninit_slice_mut`].
2066
2066
///
2067
- /// [`as_ref`]: #method.as_ref-1
2067
+ /// [`as_ref`]: pointer #method.as_ref-1
2068
2068
/// [`as_uninit_slice_mut`]: #method.as_uninit_slice_mut
2069
2069
///
2070
2070
/// # Safety
0 commit comments