]> git.lizzy.rs Git - rust.git/commitdiff
bump const type id stabilization to 1.46.0
authorAshley Mannix <ashleymannix@live.com.au>
Tue, 30 Jun 2020 00:21:22 +0000 (10:21 +1000)
committerAshley Mannix <ashleymannix@live.com.au>
Tue, 28 Jul 2020 03:30:29 +0000 (13:30 +1000)
library/core/src/any.rs
library/core/src/intrinsics.rs

index f112d73cdca82331108bc90b543d7cb4ab32c364..b28471337c6be929b53a64eab7bf056a3c9409f4 100644 (file)
@@ -435,7 +435,7 @@ impl TypeId {
     /// assert_eq!(is_string(&"cookie monster".to_string()), true);
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
-    #[rustc_const_stable(feature = "const_type_id", since = "1.45.0")]
+    #[rustc_const_stable(feature = "const_type_id", since = "1.46.0")]
     pub const fn of<T: ?Sized + 'static>() -> TypeId {
         TypeId { t: intrinsics::type_id::<T>() }
     }
index b5dd92ecb1574abcb83bf6017d729e009def5063..585e54342b77333bfe37fb1cf6a8c739f0594d83 100644 (file)
     ///
     /// The stabilized version of this intrinsic is
     /// [`std::any::TypeId::of`](../../std/any/struct.TypeId.html#method.of)
-    #[rustc_const_stable(feature = "const_type_id", since = "1.45.0")]
+    #[rustc_const_stable(feature = "const_type_id", since = "1.46.0")]
     pub fn type_id<T: ?Sized + 'static>() -> u64;
 
     /// A guard for unsafe functions that cannot ever be executed if `T` is uninhabited: