@@ -976,7 +976,7 @@ extern "rust-intrinsic" {
976
976
/// items of the same type, including alignment padding.
977
977
///
978
978
/// The stabilized version of this intrinsic is
979
- /// [`std::mem::size_of`](../../std/ mem/fn. size_of.html ).
979
+ /// [`std::mem::size_of`](crate:: mem:: size_of).
980
980
#[ rustc_const_stable( feature = "const_size_of" , since = "1.40.0" ) ]
981
981
pub fn size_of < T > ( ) -> usize ;
982
982
@@ -991,7 +991,7 @@ extern "rust-intrinsic" {
991
991
/// The minimum alignment of a type.
992
992
///
993
993
/// The stabilized version of this intrinsic is
994
- /// [`std::mem::align_of`](../../std/ mem/fn. align_of.html ).
994
+ /// [`std::mem::align_of`](crate:: mem:: align_of).
995
995
#[ rustc_const_stable( feature = "const_min_align_of" , since = "1.40.0" ) ]
996
996
pub fn min_align_of < T > ( ) -> usize ;
997
997
/// The preferred alignment of a type.
@@ -1003,13 +1003,13 @@ extern "rust-intrinsic" {
1003
1003
/// The size of the referenced value in bytes.
1004
1004
///
1005
1005
/// The stabilized version of this intrinsic is
1006
- /// [`std::mem::size_of_val`](../../std/ mem/fn. size_of_val.html ).
1006
+ /// [`std::mem::size_of_val`](crate:: mem:: size_of_val).
1007
1007
#[ rustc_const_unstable( feature = "const_size_of_val" , issue = "46571" ) ]
1008
1008
pub fn size_of_val < T : ?Sized > ( _: * const T ) -> usize ;
1009
1009
/// The required alignment of the referenced value.
1010
1010
///
1011
1011
/// The stabilized version of this intrinsic is
1012
- /// [`std::mem::align_of_val`](../../std/ mem/fn. align_of_val.html ).
1012
+ /// [`std::mem::align_of_val`](crate:: mem:: align_of_val).
1013
1013
#[ rustc_const_unstable( feature = "const_align_of_val" , issue = "46571" ) ]
1014
1014
pub fn min_align_of_val < T : ?Sized > ( _: * const T ) -> usize ;
1015
1015
@@ -1301,7 +1301,7 @@ extern "rust-intrinsic" {
1301
1301
/// `Copy`, then the return value of this function is unspecified.
1302
1302
///
1303
1303
/// The stabilized version of this intrinsic is
1304
- /// [`std::mem::needs_drop`](../../std/ mem/fn. needs_drop.html ).
1304
+ /// [`std::mem::needs_drop`](crate:: mem:: needs_drop).
1305
1305
#[ rustc_const_stable( feature = "const_needs_drop" , since = "1.40.0" ) ]
1306
1306
pub fn needs_drop < T > ( ) -> bool ;
1307
1307
@@ -1920,15 +1920,15 @@ extern "rust-intrinsic" {
1920
1920
/// cast to a `u64`; if `T` has no discriminant, returns 0.
1921
1921
///
1922
1922
/// The stabilized version of this intrinsic is
1923
- /// [`std::mem::discriminant`](../../std/ mem/fn. discriminant.html )
1923
+ /// [`std::mem::discriminant`](crate:: mem:: discriminant)
1924
1924
#[ rustc_const_unstable( feature = "const_discriminant" , issue = "69821" ) ]
1925
1925
pub fn discriminant_value < T > ( v : & T ) -> <T as DiscriminantKind >:: Discriminant ;
1926
1926
1927
1927
/// Returns the number of variants of the type `T` cast to a `usize`;
1928
1928
/// if `T` has no variants, returns 0. Uninhabited variants will be counted.
1929
1929
///
1930
1930
/// The to-be-stabilized version of this intrinsic is
1931
- /// [`std::mem::variant_count`](../../std/ mem/fn. variant_count.html )
1931
+ /// [`std::mem::variant_count`](crate:: mem:: variant_count)
1932
1932
#[ rustc_const_unstable( feature = "variant_count" , issue = "73662" ) ]
1933
1933
pub fn variant_count < T > ( ) -> usize ;
1934
1934
0 commit comments