Skip to content

Commit

Permalink
Fix links to stabilized versions of some intrinsics
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Nov 9, 2020
1 parent 25f6938 commit f173957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ extern "rust-intrinsic" {

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

Expand Down

0 comments on commit f173957

Please sign in to comment.