Skip to content

Commit 66f0f27

Browse files
authored
Rollup merge of #144978 - ehuss:intrinsic-doc-links, r=scottmcm
Fix some doc links for intrinsics This fixes a few intrinsic docs that had a link directly to itself instead of to the correct function in the `mem` module.
2 parents 84dc97c + 2cd5b49 commit 66f0f27

File tree

1 file changed

+4
-4
lines changed
  • library/core/src/intrinsics

1 file changed

+4
-4
lines changed

library/core/src/intrinsics/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,7 @@ pub unsafe fn vtable_align(ptr: *const ()) -> usize;
26672667
/// More specifically, this is the offset in bytes between successive
26682668
/// items of the same type, including alignment padding.
26692669
///
2670-
/// The stabilized version of this intrinsic is [`size_of`].
2670+
/// The stabilized version of this intrinsic is [`core::mem::size_of`].
26712671
#[rustc_nounwind]
26722672
#[unstable(feature = "core_intrinsics", issue = "none")]
26732673
#[rustc_intrinsic_const_stable_indirect]
@@ -2681,7 +2681,7 @@ pub const fn size_of<T>() -> usize;
26812681
/// Therefore, implementations must not require the user to uphold
26822682
/// any safety invariants.
26832683
///
2684-
/// The stabilized version of this intrinsic is [`align_of`].
2684+
/// The stabilized version of this intrinsic is [`core::mem::align_of`].
26852685
#[rustc_nounwind]
26862686
#[unstable(feature = "core_intrinsics", issue = "none")]
26872687
#[rustc_intrinsic_const_stable_indirect]
@@ -2704,7 +2704,7 @@ pub const fn variant_count<T>() -> usize;
27042704

27052705
/// The size of the referenced value in bytes.
27062706
///
2707-
/// The stabilized version of this intrinsic is [`size_of_val`].
2707+
/// The stabilized version of this intrinsic is [`core::mem::size_of_val`].
27082708
///
27092709
/// # Safety
27102710
///
@@ -2717,7 +2717,7 @@ pub const unsafe fn size_of_val<T: ?Sized>(ptr: *const T) -> usize;
27172717

27182718
/// The required alignment of the referenced value.
27192719
///
2720-
/// The stabilized version of this intrinsic is [`align_of_val`].
2720+
/// The stabilized version of this intrinsic is [`core::mem::align_of_val`].
27212721
///
27222722
/// # Safety
27232723
///

0 commit comments

Comments
 (0)