@@ -19,18 +19,18 @@ pub fn is_min_const_fn(tcx: TyCtxt<'tcx>, body: &'a Body<'tcx>) -> McfResult {
19
19
loop {
20
20
let predicates = tcx. predicates_of ( current) ;
21
21
for ( predicate, _) in predicates. predicates {
22
- match predicate. skip_binders ( ) {
23
- ty:: PredicateAtom :: RegionOutlives ( _)
24
- | ty:: PredicateAtom :: TypeOutlives ( _)
25
- | ty:: PredicateAtom :: WellFormed ( _)
26
- | ty:: PredicateAtom :: Projection ( _)
27
- | ty:: PredicateAtom :: ConstEvaluatable ( ..)
28
- | ty:: PredicateAtom :: ConstEquate ( ..)
29
- | ty:: PredicateAtom :: TypeWellFormedFromEnv ( ..) => continue ,
30
- ty:: PredicateAtom :: ObjectSafe ( _) => panic ! ( "object safe predicate on function: {:#?}" , predicate) ,
31
- ty:: PredicateAtom :: ClosureKind ( ..) => panic ! ( "closure kind predicate on function: {:#?}" , predicate) ,
32
- ty:: PredicateAtom :: Subtype ( _) => panic ! ( "subtype predicate on function: {:#?}" , predicate) ,
33
- ty:: PredicateAtom :: Trait ( pred, _) => {
22
+ match predicate. kind ( ) . skip_binder ( ) {
23
+ ty:: PredicateKind :: RegionOutlives ( _)
24
+ | ty:: PredicateKind :: TypeOutlives ( _)
25
+ | ty:: PredicateKind :: WellFormed ( _)
26
+ | ty:: PredicateKind :: Projection ( _)
27
+ | ty:: PredicateKind :: ConstEvaluatable ( ..)
28
+ | ty:: PredicateKind :: ConstEquate ( ..)
29
+ | ty:: PredicateKind :: TypeWellFormedFromEnv ( ..) => continue ,
30
+ ty:: PredicateKind :: ObjectSafe ( _) => panic ! ( "object safe predicate on function: {:#?}" , predicate) ,
31
+ ty:: PredicateKind :: ClosureKind ( ..) => panic ! ( "closure kind predicate on function: {:#?}" , predicate) ,
32
+ ty:: PredicateKind :: Subtype ( _) => panic ! ( "subtype predicate on function: {:#?}" , predicate) ,
33
+ ty:: PredicateKind :: Trait ( pred, _) => {
34
34
if Some ( pred. def_id ( ) ) == tcx. lang_items ( ) . sized_trait ( ) {
35
35
continue ;
36
36
}
0 commit comments