Skip to content

Commit 6ae85d1

Browse files
committed
Stabilize const TypeId::of
1 parent 62f8613 commit 6ae85d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/any.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ unsafe impl Send for TypeId {}
725725
unsafe impl Sync for TypeId {}
726726

727727
#[stable(feature = "rust1", since = "1.0.0")]
728-
#[rustc_const_unstable(feature = "const_type_id", issue = "77125")]
728+
#[rustc_const_unstable(feature = "const_cmp", issue = "143800")]
729729
impl const PartialEq for TypeId {
730730
#[inline]
731731
fn eq(&self, other: &Self) -> bool {
@@ -773,7 +773,7 @@ impl TypeId {
773773
/// ```
774774
#[must_use]
775775
#[stable(feature = "rust1", since = "1.0.0")]
776-
#[rustc_const_unstable(feature = "const_type_id", issue = "77125")]
776+
#[rustc_const_stable(feature = "const_type_id", since = "CURRENT_RUSTC_VERSION")]
777777
pub const fn of<T: ?Sized + 'static>() -> TypeId {
778778
const { intrinsics::type_id::<T>() }
779779
}

0 commit comments

Comments
 (0)