File tree 1 file changed +2
-2
lines changed
compiler/rustc_trait_selection/src/traits
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ pub fn codegen_fulfill_obligation<'tcx>(
51
51
// Currently, we use a fulfillment context to completely resolve
52
52
// all nested obligations. This is because they can inform the
53
53
// inference of the impl's type parameters.
54
- let mut fulfill_cx = FulfillmentContext :: new ( ) ;
54
+ let mut fulfill_cx = FulfillmentContext :: new_ignoring_regions ( ) ;
55
55
let impl_source = selection. map ( |predicate| {
56
56
fulfill_cx. register_predicate_obligation ( & infcx, predicate) ;
57
57
} ) ;
@@ -65,7 +65,7 @@ pub fn codegen_fulfill_obligation<'tcx>(
65
65
}
66
66
67
67
let impl_source = infcx. resolve_vars_if_possible ( impl_source) ;
68
- let impl_source = infcx . tcx . erase_regions ( impl_source) ;
68
+ let impl_source = tcx. erase_regions ( impl_source) ;
69
69
70
70
// Opaque types may have gotten their hidden types constrained, but we can ignore them safely
71
71
// as they will get constrained elsewhere, too.
You can’t perform that action at this time.
0 commit comments