@@ -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
}
@@ -2483,7 +2483,7 @@ extern "rust-intrinsic" {
2483
2483
#[ rustc_nounwind]
2484
2484
#[ rustc_do_not_const_check]
2485
2485
#[ inline]
2486
- #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub ) ]
2486
+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_is_spec ) ]
2487
2487
pub const fn ptr_guaranteed_cmp < T > ( ptr : * const T , other : * const T ) -> u8 {
2488
2488
( ptr == other) as u8
2489
2489
}
@@ -2748,7 +2748,7 @@ pub const fn ub_checks() -> bool {
2748
2748
#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
2749
2749
#[ rustc_nounwind]
2750
2750
#[ rustc_intrinsic]
2751
- #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub ) ]
2751
+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_is_spec ) ]
2752
2752
pub const unsafe fn const_allocate ( _size : usize , _align : usize ) -> * mut u8 {
2753
2753
// const eval overrides this function, but runtime code for now just returns null pointers.
2754
2754
// See <https://github.com/rust-lang/rust/issues/93935>.
@@ -2769,7 +2769,7 @@ pub const unsafe fn const_allocate(_size: usize, _align: usize) -> *mut u8 {
2769
2769
#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
2770
2770
#[ rustc_nounwind]
2771
2771
#[ rustc_intrinsic]
2772
- #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub ) ]
2772
+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_is_spec ) ]
2773
2773
pub const unsafe fn const_deallocate ( _ptr : * mut u8 , _size : usize , _align : usize ) {
2774
2774
// Runtime NOP
2775
2775
}
0 commit comments