@@ -170,7 +170,7 @@ fn pred_known_to_hold_modulo_regions<'tcx>(
170170 // The handling of regions in this area of the code is terrible,
171171 // see issue #29149. We should be able to improve on this with
172172 // NLL.
173- let errors = fully_solve_obligation ( infcx, obligation) ;
173+ let errors = fully_solve_obligation ( infcx, obligation, infcx . old_defining_use_anchor ) ;
174174
175175 match & errors[ ..] {
176176 [ ] => true ,
@@ -393,8 +393,9 @@ where
393393pub fn fully_solve_obligation < ' tcx > (
394394 infcx : & InferCtxt < ' tcx > ,
395395 obligation : PredicateObligation < ' tcx > ,
396+ defining_use_anchor : DefiningAnchor ,
396397) -> Vec < FulfillmentError < ' tcx > > {
397- fully_solve_obligations ( infcx, [ obligation] , infcx . old_defining_use_anchor )
398+ fully_solve_obligations ( infcx, [ obligation] , defining_use_anchor )
398399}
399400
400401/// Process a set of obligations (and any nested obligations that come from them)
@@ -423,7 +424,7 @@ pub fn fully_solve_bound<'tcx>(
423424 let trait_ref = tcx. mk_trait_ref ( bound, [ ty] ) ;
424425 let obligation = Obligation :: new ( tcx, cause, param_env, ty:: Binder :: dummy ( trait_ref) ) ;
425426
426- fully_solve_obligation ( infcx, obligation)
427+ fully_solve_obligation ( infcx, obligation, infcx . old_defining_use_anchor )
427428}
428429
429430/// Normalizes the predicates and checks whether they hold in an empty environment. If this
0 commit comments