]> git.lizzy.rs Git - rust.git/commitdiff
Document stable versions of `type_name` and `type_id`
authorLeSeulArtichaut <leseulartichaut@gmail.com>
Thu, 30 Jan 2020 13:34:29 +0000 (14:34 +0100)
committerLeSeulArtichaut <leseulartichaut@gmail.com>
Tue, 11 Feb 2020 21:08:20 +0000 (22:08 +0100)
src/libcore/intrinsics.rs

index 0aae613681158dbe6958c07060f5d189d319ca42..8991d405e790906d6a7515eda2f47993910a9584 100644 (file)
     pub fn min_align_of_val<T: ?Sized>(_: &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<T: ?Sized>() -> &'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<T: ?Sized + 'static>() -> u64;