Rollup merge of #78910 - tmiasko:intrinsics-link, r=jyn514

Fix links to stabilized versions of some intrinsics
This commit is contained in:
Jonas Schievink 2020-11-10 14:45:34 +01:00 committed by GitHub
commit 42fae6bb65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
@ -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;