@@ -106,7 +106,7 @@ impl<T: ?Sized> *mut T {
106
106
/// with [`cast_mut`] on `*const T` and may have documentation value if used instead of implicit
107
107
/// coercion.
108
108
///
109
- /// [`cast_mut`]: #method. cast_mut
109
+ /// [`cast_mut`]: pointer:: cast_mut
110
110
#[ stable( feature = "ptr_const_cast" , since = "1.65.0" ) ]
111
111
#[ rustc_const_stable( feature = "ptr_const_cast" , since = "1.65.0" ) ]
112
112
#[ inline( always) ]
@@ -117,7 +117,7 @@ impl<T: ?Sized> *mut T {
117
117
/// Casts a pointer to its raw bits.
118
118
///
119
119
/// This is equivalent to `as usize`, but is more specific to enhance readability.
120
- /// The inverse method is [`from_bits`](#method.from_bits-1).
120
+ /// The inverse method is [`from_bits`](pointer #method.from_bits-1).
121
121
///
122
122
/// In particular, `*p as usize` and `p as usize` will both compile for
123
123
/// pointers to numeric types but do very different things, so using this
@@ -153,7 +153,7 @@ impl<T: ?Sized> *mut T {
153
153
/// Creates a pointer from its raw bits.
154
154
///
155
155
/// This is equivalent to `as *mut T`, but is more specific to enhance readability.
156
- /// The inverse method is [`to_bits`](#method.to_bits-1).
156
+ /// The inverse method is [`to_bits`](pointer #method.to_bits-1).
157
157
///
158
158
/// # Examples
159
159
///
@@ -303,7 +303,7 @@ impl<T: ?Sized> *mut T {
303
303
///
304
304
/// For the mutable counterpart see [`as_mut`].
305
305
///
306
- /// [`as_uninit_ref`]: #method.as_uninit_ref-1
306
+ /// [`as_uninit_ref`]: pointer #method.as_uninit_ref-1
307
307
/// [`as_mut`]: #method.as_mut
308
308
///
309
309
/// # Safety
@@ -369,7 +369,7 @@ impl<T: ?Sized> *mut T {
369
369
///
370
370
/// For the mutable counterpart see [`as_uninit_mut`].
371
371
///
372
- /// [`as_ref`]: #method.as_ref-1
372
+ /// [`as_ref`]: pointer #method.as_ref-1
373
373
/// [`as_uninit_mut`]: #method.as_uninit_mut
374
374
///
375
375
/// # Safety
@@ -624,7 +624,7 @@ impl<T: ?Sized> *mut T {
624
624
/// For the shared counterpart see [`as_ref`].
625
625
///
626
626
/// [`as_uninit_mut`]: #method.as_uninit_mut
627
- /// [`as_ref`]: #method.as_ref-1
627
+ /// [`as_ref`]: pointer #method.as_ref-1
628
628
///
629
629
/// # Safety
630
630
///
@@ -689,7 +689,7 @@ impl<T: ?Sized> *mut T {
689
689
/// For the shared counterpart see [`as_uninit_ref`].
690
690
///
691
691
/// [`as_mut`]: #method.as_mut
692
- /// [`as_uninit_ref`]: #method.as_uninit_ref-1
692
+ /// [`as_uninit_ref`]: pointer #method.as_uninit_ref-1
693
693
///
694
694
/// # Safety
695
695
///
@@ -779,7 +779,7 @@ impl<T: ?Sized> *mut T {
779
779
///
780
780
/// This function is the inverse of [`offset`].
781
781
///
782
- /// [`offset`]: #method.offset-1
782
+ /// [`offset`]: pointer #method.offset-1
783
783
///
784
784
/// # Safety
785
785
///
@@ -2051,7 +2051,7 @@ impl<T> *mut [T] {
2051
2051
///
2052
2052
/// For the mutable counterpart see [`as_uninit_slice_mut`].
2053
2053
///
2054
- /// [`as_ref`]: #method.as_ref-1
2054
+ /// [`as_ref`]: pointer #method.as_ref-1
2055
2055
/// [`as_uninit_slice_mut`]: #method.as_uninit_slice_mut
2056
2056
///
2057
2057
/// # Safety
0 commit comments