We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TypeId::of
1 parent 62f8613 commit 6ae85d1Copy full SHA for 6ae85d1
1 file changed
core/src/any.rs
@@ -725,7 +725,7 @@ unsafe impl Send for TypeId {}
725
unsafe impl Sync for TypeId {}
726
727
#[stable(feature = "rust1", since = "1.0.0")]
728
-#[rustc_const_unstable(feature = "const_type_id", issue = "77125")]
+#[rustc_const_unstable(feature = "const_cmp", issue = "143800")]
729
impl const PartialEq for TypeId {
730
#[inline]
731
fn eq(&self, other: &Self) -> bool {
@@ -773,7 +773,7 @@ impl TypeId {
773
/// ```
774
#[must_use]
775
776
- #[rustc_const_unstable(feature = "const_type_id", issue = "77125")]
+ #[rustc_const_stable(feature = "const_type_id", since = "CURRENT_RUSTC_VERSION")]
777
pub const fn of<T: ?Sized + 'static>() -> TypeId {
778
const { intrinsics::type_id::<T>() }
779
}
0 commit comments