@@ -2629,6 +2629,7 @@ pub const fn overflow_checks() -> bool {
26292629#[ rustc_nounwind]
26302630#[ rustc_intrinsic]
26312631#[ miri:: intrinsic_fallback_is_spec]
2632+ #[ rustc_intrinsic_const_stable_indirect]
26322633pub const unsafe fn const_allocate ( _size : usize , _align : usize ) -> * mut u8 {
26332634 // const eval overrides this function, but runtime code for now just returns null pointers.
26342635 // See <https://github.com/rust-lang/rust/issues/93935>.
@@ -2658,6 +2659,7 @@ pub const unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize)
26582659#[ rustc_nounwind]
26592660#[ rustc_intrinsic]
26602661#[ miri:: intrinsic_fallback_is_spec]
2662+ #[ rustc_intrinsic_const_stable_indirect]
26612663pub const unsafe fn const_make_global ( ptr : * mut u8 ) -> * const u8 {
26622664 // const eval overrides this function; at runtime, it is a NOP.
26632665 ptr
@@ -2823,6 +2825,7 @@ pub const fn offset_of<T: PointeeSized>(variant: u32, field: u32) -> usize;
28232825#[ rustc_nounwind]
28242826#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
28252827#[ rustc_intrinsic]
2828+ #[ rustc_intrinsic_const_stable_indirect]
28262829pub const fn variant_count < T > ( ) -> usize ;
28272830
28282831/// The size of the referenced value in bytes.
@@ -2862,6 +2865,7 @@ pub const unsafe fn align_of_val<T: ?Sized>(ptr: *const T) -> usize;
28622865#[ rustc_nounwind]
28632866#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
28642867#[ rustc_intrinsic]
2868+ #[ rustc_intrinsic_const_stable_indirect]
28652869pub const fn type_name < T : ?Sized > ( ) -> & ' static str ;
28662870
28672871/// Gets an identifier which is globally unique to the specified type. This
@@ -2877,6 +2881,7 @@ pub const fn type_name<T: ?Sized>() -> &'static str;
28772881#[ rustc_nounwind]
28782882#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
28792883#[ rustc_intrinsic]
2884+ #[ rustc_intrinsic_const_stable_indirect]
28802885pub const fn type_id < T : ?Sized + ' static > ( ) -> crate :: any:: TypeId ;
28812886
28822887/// Tests (at compile-time) if two [`crate::any::TypeId`] instances identify the
0 commit comments