Skip to content

Commit 2c79987

Browse files
committed
Use intra-doc links for mem::*
1 parent 45b4e14 commit 2c79987

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

library/core/src/intrinsics.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ extern "rust-intrinsic" {
976976
/// items of the same type, including alignment padding.
977977
///
978978
/// 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).
980980
#[rustc_const_stable(feature = "const_size_of", since = "1.40.0")]
981981
pub fn size_of<T>() -> usize;
982982

@@ -991,7 +991,7 @@ extern "rust-intrinsic" {
991991
/// The minimum alignment of a type.
992992
///
993993
/// 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).
995995
#[rustc_const_stable(feature = "const_min_align_of", since = "1.40.0")]
996996
pub fn min_align_of<T>() -> usize;
997997
/// The preferred alignment of a type.
@@ -1003,13 +1003,13 @@ extern "rust-intrinsic" {
10031003
/// The size of the referenced value in bytes.
10041004
///
10051005
/// 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).
10071007
#[rustc_const_unstable(feature = "const_size_of_val", issue = "46571")]
10081008
pub fn size_of_val<T: ?Sized>(_: *const T) -> usize;
10091009
/// The required alignment of the referenced value.
10101010
///
10111011
/// 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).
10131013
#[rustc_const_unstable(feature = "const_align_of_val", issue = "46571")]
10141014
pub fn min_align_of_val<T: ?Sized>(_: *const T) -> usize;
10151015

@@ -1301,7 +1301,7 @@ extern "rust-intrinsic" {
13011301
/// `Copy`, then the return value of this function is unspecified.
13021302
///
13031303
/// 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).
13051305
#[rustc_const_stable(feature = "const_needs_drop", since = "1.40.0")]
13061306
pub fn needs_drop<T>() -> bool;
13071307

@@ -1920,15 +1920,15 @@ extern "rust-intrinsic" {
19201920
/// cast to a `u64`; if `T` has no discriminant, returns 0.
19211921
///
19221922
/// The stabilized version of this intrinsic is
1923-
/// [`std::mem::discriminant`](../../std/mem/fn.discriminant.html)
1923+
/// [`std::mem::discriminant`](crate::mem::discriminant)
19241924
#[rustc_const_unstable(feature = "const_discriminant", issue = "69821")]
19251925
pub fn discriminant_value<T>(v: &T) -> <T as DiscriminantKind>::Discriminant;
19261926

19271927
/// Returns the number of variants of the type `T` cast to a `usize`;
19281928
/// if `T` has no variants, returns 0. Uninhabited variants will be counted.
19291929
///
19301930
/// 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)
19321932
#[rustc_const_unstable(feature = "variant_count", issue = "73662")]
19331933
pub fn variant_count<T>() -> usize;
19341934

0 commit comments

Comments
 (0)