Skip to content

Commit f173957

Browse files
committed
Fix links to stabilized versions of some intrinsics
1 parent 25f6938 commit f173957

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/intrinsics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ extern "rust-intrinsic" {
788788

789789
/// The size of the referenced value in bytes.
790790
///
791-
/// The stabilized version of this intrinsic is [`size_of_val`].
791+
/// The stabilized version of this intrinsic is [`mem::size_of_val`].
792792
#[rustc_const_unstable(feature = "const_size_of_val", issue = "46571")]
793793
pub fn size_of_val<T: ?Sized>(_: *const T) -> usize;
794794
/// The required alignment of the referenced value.
@@ -1704,7 +1704,7 @@ extern "rust-intrinsic" {
17041704
/// Returns the number of variants of the type `T` cast to a `usize`;
17051705
/// if `T` has no variants, returns 0. Uninhabited variants will be counted.
17061706
///
1707-
/// The to-be-stabilized version of this intrinsic is [`variant_count`].
1707+
/// The to-be-stabilized version of this intrinsic is [`mem::variant_count`].
17081708
#[rustc_const_unstable(feature = "variant_count", issue = "73662")]
17091709
pub fn variant_count<T>() -> usize;
17101710

0 commit comments

Comments
 (0)