@@ -20,27 +20,18 @@ pub fn explicit_outlives_bounds<'tcx>(
20
20
param_env
21
21
. caller_bounds ( )
22
22
. into_iter ( )
23
- . map ( ty:: Predicate :: kind)
23
+ . map ( ty:: Clause :: kind)
24
24
. filter_map ( ty:: Binder :: no_bound_vars)
25
25
. filter_map ( move |kind| match kind {
26
- ty:: PredicateKind :: Clause ( ty:: ClauseKind :: Projection ( ..) )
27
- | ty:: PredicateKind :: Clause ( ty:: ClauseKind :: Trait ( ..) )
28
- | ty:: PredicateKind :: Clause ( ty:: ClauseKind :: ConstArgHasType ( ..) )
29
- | ty:: PredicateKind :: AliasRelate ( ..)
30
- | ty:: PredicateKind :: Coerce ( ..)
31
- | ty:: PredicateKind :: Subtype ( ..)
32
- | ty:: PredicateKind :: Clause ( ty:: ClauseKind :: WellFormed ( ..) )
33
- | ty:: PredicateKind :: ObjectSafe ( ..)
34
- | ty:: PredicateKind :: ClosureKind ( ..)
35
- | ty:: PredicateKind :: Clause ( ty:: ClauseKind :: TypeOutlives ( ..) )
36
- | ty:: PredicateKind :: Clause ( ty:: ClauseKind :: ConstEvaluatable ( ..) )
37
- | ty:: PredicateKind :: ConstEquate ( ..)
38
- | ty:: PredicateKind :: Ambiguous
39
- | ty:: PredicateKind :: TypeWellFormedFromEnv ( ..) => None ,
40
- ty:: PredicateKind :: Clause ( ty:: ClauseKind :: RegionOutlives ( ty:: OutlivesPredicate (
41
- r_a,
42
- r_b,
43
- ) ) ) => Some ( OutlivesBound :: RegionSubRegion ( r_b, r_a) ) ,
26
+ ty:: ClauseKind :: RegionOutlives ( ty:: OutlivesPredicate ( r_a, r_b) ) => {
27
+ Some ( OutlivesBound :: RegionSubRegion ( r_b, r_a) )
28
+ }
29
+ ty:: ClauseKind :: Trait ( _)
30
+ | ty:: ClauseKind :: TypeOutlives ( _)
31
+ | ty:: ClauseKind :: Projection ( _)
32
+ | ty:: ClauseKind :: ConstArgHasType ( _, _)
33
+ | ty:: ClauseKind :: WellFormed ( _)
34
+ | ty:: ClauseKind :: ConstEvaluatable ( _) => None ,
44
35
} )
45
36
}
46
37
0 commit comments