@@ -830,7 +830,7 @@ impl<T: ?Sized> *mut T {
830
830
///
831
831
/// See [`ptr::read`] for safety concerns and examples.
832
832
///
833
- /// [`ptr::read`]: read()
833
+ /// [`ptr::read`]: crate::ptr:: read()
834
834
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
835
835
#[ inline]
836
836
pub unsafe fn read ( self ) -> T
@@ -850,7 +850,7 @@ impl<T: ?Sized> *mut T {
850
850
///
851
851
/// See [`ptr::read_volatile`] for safety concerns and examples.
852
852
///
853
- /// [`ptr::read_volatile`]: read_volatile()
853
+ /// [`ptr::read_volatile`]: crate::ptr:: read_volatile()
854
854
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
855
855
#[ inline]
856
856
pub unsafe fn read_volatile ( self ) -> T
@@ -868,7 +868,7 @@ impl<T: ?Sized> *mut T {
868
868
///
869
869
/// See [`ptr::read_unaligned`] for safety concerns and examples.
870
870
///
871
- /// [`ptr::read_unaligned`]: read_unaligned()
871
+ /// [`ptr::read_unaligned`]: crate::ptr:: read_unaligned()
872
872
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
873
873
#[ inline]
874
874
pub unsafe fn read_unaligned ( self ) -> T
@@ -886,7 +886,7 @@ impl<T: ?Sized> *mut T {
886
886
///
887
887
/// See [`ptr::copy`] for safety concerns and examples.
888
888
///
889
- /// [`ptr::copy`]: copy()
889
+ /// [`ptr::copy`]: crate::ptr:: copy()
890
890
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
891
891
#[ inline]
892
892
pub unsafe fn copy_to ( self , dest : * mut T , count : usize )
@@ -904,7 +904,7 @@ impl<T: ?Sized> *mut T {
904
904
///
905
905
/// See [`ptr::copy_nonoverlapping`] for safety concerns and examples.
906
906
///
907
- /// [`ptr::copy_nonoverlapping`]: copy_nonoverlapping()
907
+ /// [`ptr::copy_nonoverlapping`]: crate::ptr:: copy_nonoverlapping()
908
908
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
909
909
#[ inline]
910
910
pub unsafe fn copy_to_nonoverlapping ( self , dest : * mut T , count : usize )
@@ -922,7 +922,7 @@ impl<T: ?Sized> *mut T {
922
922
///
923
923
/// See [`ptr::copy`] for safety concerns and examples.
924
924
///
925
- /// [`ptr::copy`]: copy()
925
+ /// [`ptr::copy`]: crate::ptr:: copy()
926
926
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
927
927
#[ inline]
928
928
pub unsafe fn copy_from ( self , src : * const T , count : usize )
@@ -940,7 +940,7 @@ impl<T: ?Sized> *mut T {
940
940
///
941
941
/// See [`ptr::copy_nonoverlapping`] for safety concerns and examples.
942
942
///
943
- /// [`ptr::copy_nonoverlapping`]: copy_nonoverlapping()
943
+ /// [`ptr::copy_nonoverlapping`]: crate::ptr:: copy_nonoverlapping()
944
944
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
945
945
#[ inline]
946
946
pub unsafe fn copy_from_nonoverlapping ( self , src : * const T , count : usize )
@@ -955,7 +955,7 @@ impl<T: ?Sized> *mut T {
955
955
///
956
956
/// See [`ptr::drop_in_place`] for safety concerns and examples.
957
957
///
958
- /// [`ptr::drop_in_place`]: drop_in_place()
958
+ /// [`ptr::drop_in_place`]: crate::ptr:: drop_in_place()
959
959
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
960
960
#[ inline]
961
961
pub unsafe fn drop_in_place ( self ) {
@@ -968,7 +968,7 @@ impl<T: ?Sized> *mut T {
968
968
///
969
969
/// See [`ptr::write`] for safety concerns and examples.
970
970
///
971
- /// [`ptr::write`]: write()
971
+ /// [`ptr::write`]: crate::ptr:: write()
972
972
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
973
973
#[ inline]
974
974
pub unsafe fn write ( self , val : T )
@@ -984,7 +984,7 @@ impl<T: ?Sized> *mut T {
984
984
///
985
985
/// See [`ptr::write_bytes`] for safety concerns and examples.
986
986
///
987
- /// [`ptr::write_bytes`]: write_bytes()
987
+ /// [`ptr::write_bytes`]: crate::ptr:: write_bytes()
988
988
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
989
989
#[ inline]
990
990
pub unsafe fn write_bytes ( self , val : u8 , count : usize )
@@ -1004,7 +1004,7 @@ impl<T: ?Sized> *mut T {
1004
1004
///
1005
1005
/// See [`ptr::write_volatile`] for safety concerns and examples.
1006
1006
///
1007
- /// [`ptr::write_volatile`]: write_volatile()
1007
+ /// [`ptr::write_volatile`]: crate::ptr:: write_volatile()
1008
1008
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
1009
1009
#[ inline]
1010
1010
pub unsafe fn write_volatile ( self , val : T )
@@ -1022,7 +1022,7 @@ impl<T: ?Sized> *mut T {
1022
1022
///
1023
1023
/// See [`ptr::write_unaligned`] for safety concerns and examples.
1024
1024
///
1025
- /// [`ptr::write_unaligned`]: write_unaligned()
1025
+ /// [`ptr::write_unaligned`]: crate::ptr:: write_unaligned()
1026
1026
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
1027
1027
#[ inline]
1028
1028
pub unsafe fn write_unaligned ( self , val : T )
@@ -1038,7 +1038,7 @@ impl<T: ?Sized> *mut T {
1038
1038
///
1039
1039
/// See [`ptr::replace`] for safety concerns and examples.
1040
1040
///
1041
- /// [`ptr::replace`]: replace()
1041
+ /// [`ptr::replace`]: crate::ptr:: replace()
1042
1042
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
1043
1043
#[ inline]
1044
1044
pub unsafe fn replace ( self , src : T ) -> T
@@ -1055,7 +1055,7 @@ impl<T: ?Sized> *mut T {
1055
1055
///
1056
1056
/// See [`ptr::swap`] for safety concerns and examples.
1057
1057
///
1058
- /// [`ptr::swap`]: swap()
1058
+ /// [`ptr::swap`]: crate::ptr:: swap()
1059
1059
#[ stable( feature = "pointer_methods" , since = "1.26.0" ) ]
1060
1060
#[ inline]
1061
1061
pub unsafe fn swap ( self , with : * mut T )
0 commit comments