Skip to content

Commit e385661

Browse files
committed
bump const type id stabilization to 1.46.0
1 parent cac16c9 commit e385661

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/any.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ impl TypeId {
435435
/// assert_eq!(is_string(&"cookie monster".to_string()), true);
436436
/// ```
437437
#[stable(feature = "rust1", since = "1.0.0")]
438-
#[rustc_const_stable(feature = "const_type_id", since = "1.45.0")]
438+
#[rustc_const_stable(feature = "const_type_id", since = "1.46.0")]
439439
pub const fn of<T: ?Sized + 'static>() -> TypeId {
440440
TypeId { t: intrinsics::type_id::<T>() }
441441
}

library/core/src/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ extern "rust-intrinsic" {
10241024
///
10251025
/// The stabilized version of this intrinsic is
10261026
/// [`std::any::TypeId::of`](../../std/any/struct.TypeId.html#method.of)
1027-
#[rustc_const_stable(feature = "const_type_id", since = "1.45.0")]
1027+
#[rustc_const_stable(feature = "const_type_id", since = "1.46.0")]
10281028
pub fn type_id<T: ?Sized + 'static>() -> u64;
10291029

10301030
/// A guard for unsafe functions that cannot ever be executed if `T` is uninhabited:

0 commit comments

Comments
 (0)