@@ -987,7 +987,7 @@ pub const unsafe fn assume(b: bool) {
987987#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
988988#[ rustc_intrinsic]
989989#[ rustc_nounwind]
990- #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub ) ]
990+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_is_spec ) ]
991991pub const fn likely ( b : bool ) -> bool {
992992 b
993993}
@@ -1007,7 +1007,7 @@ pub const fn likely(b: bool) -> bool {
10071007#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
10081008#[ rustc_intrinsic]
10091009#[ rustc_nounwind]
1010- #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub ) ]
1010+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_is_spec ) ]
10111011pub const fn unlikely ( b : bool ) -> bool {
10121012 b
10131013}
@@ -2471,7 +2471,7 @@ extern "rust-intrinsic" {
24712471#[ rustc_nounwind]
24722472#[ rustc_do_not_const_check]
24732473#[ inline]
2474- #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub ) ]
2474+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_is_spec ) ]
24752475pub const fn ptr_guaranteed_cmp < T > ( ptr : * const T , other : * const T ) -> u8 {
24762476 ( ptr == other) as u8
24772477}
@@ -2736,7 +2736,7 @@ pub const fn ub_checks() -> bool {
27362736#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
27372737#[ rustc_nounwind]
27382738#[ rustc_intrinsic]
2739- #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub ) ]
2739+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_is_spec ) ]
27402740pub const unsafe fn const_allocate ( _size : usize , _align : usize ) -> * mut u8 {
27412741 // const eval overrides this function, but runtime code for now just returns null pointers.
27422742 // See <https://github.com/rust-lang/rust/issues/93935>.
@@ -2757,7 +2757,7 @@ pub const unsafe fn const_allocate(_size: usize, _align: usize) -> *mut u8 {
27572757#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
27582758#[ rustc_nounwind]
27592759#[ rustc_intrinsic]
2760- #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub ) ]
2760+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_is_spec ) ]
27612761pub const unsafe fn const_deallocate ( _ptr : * mut u8 , _size : usize , _align : usize ) {
27622762 // Runtime NOP
27632763}
0 commit comments