@@ -19,18 +19,18 @@ pub fn is_min_const_fn(tcx: TyCtxt<'tcx>, body: &'a Body<'tcx>) -> McfResult {
1919 loop {
2020 let predicates = tcx. predicates_of ( current) ;
2121 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, _) => {
3434 if Some ( pred. def_id ( ) ) == tcx. lang_items ( ) . sized_trait ( ) {
3535 continue ;
3636 }
0 commit comments