File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
compiler/rustc_traits/src Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,9 @@ fn compute_implied_outlives_bounds<'tcx>(
94
94
// region relationships.
95
95
implied_bounds. extend ( obligations. into_iter ( ) . flat_map ( |obligation| {
96
96
assert ! ( !obligation. has_escaping_bound_vars( ) ) ;
97
- let binder = obligation. predicate . bound_atom ( ) ;
98
- if binder. skip_binder ( ) . has_escaping_bound_vars ( ) {
99
- vec ! [ ]
100
- } else {
101
- match binder. skip_binder ( ) {
97
+ match obligation. predicate . bound_atom ( ) . no_bound_vars ( ) {
98
+ None => vec ! [ ] ,
99
+ Some ( pred) => match pred {
102
100
ty:: PredicateAtom :: Trait ( ..)
103
101
| ty:: PredicateAtom :: Subtype ( ..)
104
102
| ty:: PredicateAtom :: Projection ( ..)
@@ -122,7 +120,7 @@ fn compute_implied_outlives_bounds<'tcx>(
122
120
tcx. push_outlives_components ( ty_a, & mut components) ;
123
121
implied_bounds_from_components ( r_b, components)
124
122
}
125
- }
123
+ } ,
126
124
}
127
125
} ) ) ;
128
126
}
You can’t perform that action at this time.
0 commit comments