File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
library/core/src/intrinsics Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -2605,6 +2605,7 @@ pub const fn contract_checks() -> bool {
2605
2605
// doesn't honor `#[allow_internal_unstable]`, so for the const feature gate we use the user-facing
2606
2606
// `contracts` feature rather than the perma-unstable `contracts_internals`
2607
2607
#[ rustc_const_unstable( feature = "contracts" , issue = "128044" ) ]
2608
+ #[ miri:: intrinsic_fallback_is_spec]
2608
2609
#[ lang = "contract_check_requires" ]
2609
2610
#[ rustc_intrinsic]
2610
2611
pub const fn contract_check_requires < C : Fn ( ) -> bool + Copy > ( cond : C ) {
@@ -2632,6 +2633,7 @@ pub const fn contract_check_requires<C: Fn() -> bool + Copy>(cond: C) {
2632
2633
// `contracts` feature rather than the perma-unstable `contracts_internals`.
2633
2634
// Const-checking doesn't honor allow_internal_unstable logic used by contract expansion.
2634
2635
#[ rustc_const_unstable( feature = "contracts" , issue = "128044" ) ]
2636
+ #[ miri:: intrinsic_fallback_is_spec]
2635
2637
#[ lang = "contract_check_ensures" ]
2636
2638
#[ rustc_intrinsic]
2637
2639
pub const fn contract_check_ensures < C : Fn ( & Ret ) -> bool + Copy , Ret > ( cond : C , ret : Ret ) -> Ret {
You can’t perform that action at this time.
0 commit comments