@@ -931,7 +931,7 @@ extern "rust-intrinsic" {
931
931
/// reach code marked with this function.
932
932
///
933
933
/// The stabilized version of this intrinsic is
934
- /// [`std::hint::unreachable_unchecked`](../../std/ hint/fn. unreachable_unchecked.html ).
934
+ /// [`std::hint::unreachable_unchecked`](crate:: hint:: unreachable_unchecked).
935
935
#[ rustc_const_unstable( feature = "const_unreachable_unchecked" , issue = "53188" ) ]
936
936
pub fn unreachable ( ) -> !;
937
937
@@ -1016,7 +1016,7 @@ extern "rust-intrinsic" {
1016
1016
/// Gets a static string slice containing the name of a type.
1017
1017
///
1018
1018
/// The stabilized version of this intrinsic is
1019
- /// [`std::any::type_name`](../../std/ any/fn. type_name.html )
1019
+ /// [`std::any::type_name`](crate:: any:: type_name)
1020
1020
#[ rustc_const_unstable( feature = "const_type_name" , issue = "63084" ) ]
1021
1021
pub fn type_name < T : ?Sized > ( ) -> & ' static str ;
1022
1022
@@ -1025,7 +1025,7 @@ extern "rust-intrinsic" {
1025
1025
/// crate it is invoked in.
1026
1026
///
1027
1027
/// The stabilized version of this intrinsic is
1028
- /// [`std::any::TypeId::of`](../../std/ any/struct. TypeId.html#method. of)
1028
+ /// [`std::any::TypeId::of`](crate:: any:: TypeId:: of)
1029
1029
#[ rustc_const_stable( feature = "const_type_id" , since = "1.46.0" ) ]
1030
1030
pub fn type_id < T : ?Sized + ' static > ( ) -> u64 ;
1031
1031
@@ -1049,7 +1049,7 @@ extern "rust-intrinsic" {
1049
1049
1050
1050
/// Gets a reference to a static `Location` indicating where it was called.
1051
1051
///
1052
- /// Consider using [`std::panic::Location::caller`](../../std/ panic/struct. Location.html#method. caller)
1052
+ /// Consider using [`std::panic::Location::caller`](crate:: panic:: Location:: caller)
1053
1053
/// instead.
1054
1054
#[ rustc_const_unstable( feature = "const_caller_location" , issue = "47809" ) ]
1055
1055
pub fn caller_location ( ) -> & ' static crate :: panic:: Location < ' static > ;
@@ -2053,7 +2053,6 @@ pub(crate) fn is_nonoverlapping<T>(src: *const T, dst: *const T, count: usize) -
2053
2053
/// `copy_nonoverlapping` is semantically equivalent to C's [`memcpy`], but
2054
2054
/// with the argument order swapped.
2055
2055
///
2056
- /// [`copy`]: ./fn.copy.html
2057
2056
/// [`memcpy`]: https://en.cppreference.com/w/c/string/byte/memcpy
2058
2057
///
2059
2058
/// # Safety
@@ -2078,8 +2077,8 @@ pub(crate) fn is_nonoverlapping<T>(src: *const T, dst: *const T, count: usize) -
2078
2077
/// Note that even if the effectively copied size (`count * size_of::<T>()`) is
2079
2078
/// `0`, the pointers must be non-NULL and properly aligned.
2080
2079
///
2081
- /// [`Copy`]: ../ marker/trait. Copy.html
2082
- /// [`read`]: ../ ptr/fn. read.html
2080
+ /// [`Copy`]: crate:: marker:: Copy
2081
+ /// [`read`]: crate:: ptr:: read
2083
2082
/// [read-ownership]: ../ptr/fn.read.html#ownership-of-the-returned-value
2084
2083
/// [valid]: ../ptr/index.html#safety
2085
2084
///
@@ -2160,7 +2159,6 @@ pub unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize) {
2160
2159
/// order swapped. Copying takes place as if the bytes were copied from `src`
2161
2160
/// to a temporary array and then copied from the array to `dst`.
2162
2161
///
2163
- /// [`copy_nonoverlapping`]: ./fn.copy_nonoverlapping.html
2164
2162
/// [`memmove`]: https://en.cppreference.com/w/c/string/byte/memmove
2165
2163
///
2166
2164
/// # Safety
@@ -2181,8 +2179,8 @@ pub unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize) {
2181
2179
/// Note that even if the effectively copied size (`count * size_of::<T>()`) is
2182
2180
/// `0`, the pointers must be non-NULL and properly aligned.
2183
2181
///
2184
- /// [`Copy`]: ../ marker/trait. Copy.html
2185
- /// [`read`]: ../ ptr/fn. read.html
2182
+ /// [`Copy`]: crate:: marker:: Copy
2183
+ /// [`read`]: crate:: ptr:: read
2186
2184
/// [read-ownership]: ../ptr/fn.read.html#ownership-of-the-returned-value
2187
2185
/// [valid]: ../ptr/index.html#safety
2188
2186
///
0 commit comments