From 216f100dfcd00891ea1f6684df77fc87711453ed Mon Sep 17 00:00:00 2001 From: LeSeulArtichaut Date: Thu, 30 Jan 2020 14:34:29 +0100 Subject: [PATCH] Document stable versions of `type_name` and `type_id` --- src/libcore/intrinsics.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index 0aae6136811..8991d405e79 100644 --- a/src/libcore/intrinsics.rs +++ b/src/libcore/intrinsics.rs @@ -870,12 +870,16 @@ pub fn min_align_of_val(_: &T) -> usize; /// Gets a static string slice containing the name of a type. + /// The stabilized version of this intrinsic is + /// [`std::any::type_name`](../../std/any/fn.type_name.html) #[rustc_const_unstable(feature = "const_type_name", issue = "none")] pub fn type_name() -> &'static str; /// Gets an identifier which is globally unique to the specified type. This /// function will return the same value for a type regardless of whichever /// crate it is invoked in. + /// The stabilized version of this intrinsic is + /// [`std::any::TypeId::of`](../../std/any/struct.TypeId.html#method.of) #[rustc_const_unstable(feature = "const_type_id", issue = "none")] pub fn type_id() -> u64; -- 2.44.0