@@ -987,7 +987,7 @@ pub const unsafe fn assume(b: bool) {
987
987
#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
988
988
#[ rustc_intrinsic]
989
989
#[ rustc_nounwind]
990
- #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub ) ]
990
+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_is_spec ) ]
991
991
pub const fn likely ( b : bool ) -> bool {
992
992
b
993
993
}
@@ -1007,7 +1007,7 @@ pub const fn likely(b: bool) -> bool {
1007
1007
#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
1008
1008
#[ rustc_intrinsic]
1009
1009
#[ rustc_nounwind]
1010
- #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub ) ]
1010
+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_is_spec ) ]
1011
1011
pub const fn unlikely ( b : bool ) -> bool {
1012
1012
b
1013
1013
}
@@ -2471,7 +2471,7 @@ extern "rust-intrinsic" {
2471
2471
#[ rustc_nounwind]
2472
2472
#[ rustc_do_not_const_check]
2473
2473
#[ inline]
2474
- #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub ) ]
2474
+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_is_spec ) ]
2475
2475
pub const fn ptr_guaranteed_cmp < T > ( ptr : * const T , other : * const T ) -> u8 {
2476
2476
( ptr == other) as u8
2477
2477
}
@@ -2736,7 +2736,7 @@ pub const fn ub_checks() -> bool {
2736
2736
#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
2737
2737
#[ rustc_nounwind]
2738
2738
#[ rustc_intrinsic]
2739
- #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub ) ]
2739
+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_is_spec ) ]
2740
2740
pub const unsafe fn const_allocate ( _size : usize , _align : usize ) -> * mut u8 {
2741
2741
// const eval overrides this function, but runtime code for now just returns null pointers.
2742
2742
// 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 {
2757
2757
#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
2758
2758
#[ rustc_nounwind]
2759
2759
#[ rustc_intrinsic]
2760
- #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub ) ]
2760
+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_is_spec ) ]
2761
2761
pub const unsafe fn const_deallocate ( _ptr : * mut u8 , _size : usize , _align : usize ) {
2762
2762
// Runtime NOP
2763
2763
}
0 commit comments