diff options
| author | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-01-30 14:34:29 +0100 |
|---|---|---|
| committer | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-02-11 22:08:20 +0100 |
| commit | 216f100dfcd00891ea1f6684df77fc87711453ed (patch) | |
| tree | f9a81571ce5f25cc9fc05e3999f32bcce1842e11 /src | |
| parent | abcbf7c09d50421fb790d023740108016e4114de (diff) | |
| download | rust-216f100dfcd00891ea1f6684df77fc87711453ed.tar.gz rust-216f100dfcd00891ea1f6684df77fc87711453ed.zip | |
Document stable versions of `type_name` and `type_id`
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/intrinsics.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ extern "rust-intrinsic" { 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; |
