]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/any.rs
bump const type id stabilization to 1.46.0
[rust.git] / library / core / src / any.rs
index 79b6304958d51332af85ff9987ba5c8740feb385..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_unstable(feature = "const_type_id", issue = "41875")]
+    #[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>() }
     }