File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -987,6 +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
991
pub const fn likely ( b : bool ) -> bool {
991
992
b
992
993
}
@@ -1006,6 +1007,7 @@ pub const fn likely(b: bool) -> bool {
1006
1007
#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
1007
1008
#[ rustc_intrinsic]
1008
1009
#[ rustc_nounwind]
1010
+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub) ]
1009
1011
pub const fn unlikely ( b : bool ) -> bool {
1010
1012
b
1011
1013
}
@@ -2526,6 +2528,7 @@ extern "rust-intrinsic" {
2526
2528
#[ rustc_nounwind]
2527
2529
#[ rustc_do_not_const_check]
2528
2530
#[ inline]
2531
+ #[ cfg_attr( not( bootstrap) , miri:: intrinsic_fallback_checks_ub) ]
2529
2532
pub const fn ptr_guaranteed_cmp < T > ( ptr : * const T , other : * const T ) -> u8 {
2530
2533
( ptr == other) as u8
2531
2534
}
You can’t perform that action at this time.
0 commit comments