File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ impl TypeId {
435
435
/// assert_eq!(is_string(&"cookie monster".to_string()), true);
436
436
/// ```
437
437
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
438
- #[ rustc_const_unstable ( feature = "const_type_id" , issue = "41875 " ) ]
438
+ #[ rustc_const_stable ( feature = "const_type_id" , since = "1.45.0 " ) ]
439
439
pub const fn of < T : ?Sized + ' static > ( ) -> TypeId {
440
440
TypeId { t : intrinsics:: type_id :: < T > ( ) }
441
441
}
Original file line number Diff line number Diff line change @@ -1024,7 +1024,7 @@ extern "rust-intrinsic" {
1024
1024
///
1025
1025
/// The stabilized version of this intrinsic is
1026
1026
/// [`std::any::TypeId::of`](../../std/any/struct.TypeId.html#method.of)
1027
- #[ rustc_const_unstable ( feature = "const_type_id" , issue = "41875 " ) ]
1027
+ #[ rustc_const_stable ( feature = "const_type_id" , since = "1.45.0 " ) ]
1028
1028
pub fn type_id < T : ?Sized + ' static > ( ) -> u64 ;
1029
1029
1030
1030
/// A guard for unsafe functions that cannot ever be executed if `T` is uninhabited:
Original file line number Diff line number Diff line change 145
145
#![ feature( maybe_uninit_slice) ]
146
146
#![ feature( external_doc) ]
147
147
#![ feature( associated_type_bounds) ]
148
- #![ feature( const_type_id) ]
149
148
#![ feature( const_caller_location) ]
150
149
#![ feature( slice_ptr_get) ]
151
150
#![ feature( no_niche) ] // rust-lang/rust#68303
You can’t perform that action at this time.
0 commit comments