@@ -5,7 +5,7 @@ use rustc_middle::ty::fold::TypeFoldable;
55use  rustc_middle:: ty:: relate:: RelateResult ; 
66use  rustc_middle:: ty:: relate:: combine:: PredicateEmittingRelation ; 
77use  rustc_middle:: ty:: { self ,  Ty ,  TyCtxt } ; 
8- use  rustc_span:: { DUMMY_SP ,  ErrorGuaranteed } ; 
8+ use  rustc_span:: { DUMMY_SP ,  ErrorGuaranteed ,   Span } ; 
99
1010use  super :: { BoundRegionConversionTime ,  InferCtxt ,  RegionVariableOrigin ,  SubregionOrigin } ; 
1111
@@ -203,23 +203,23 @@ impl<'tcx> rustc_type_ir::InferCtxtLike for InferCtxt<'tcx> {
203203        self . probe ( |_| probe ( ) ) 
204204    } 
205205
206-     fn  sub_regions ( & self ,  sub :  ty:: Region < ' tcx > ,  sup :  ty:: Region < ' tcx > )  { 
206+     fn  sub_regions ( & self ,  sub :  ty:: Region < ' tcx > ,  sup :  ty:: Region < ' tcx > ,   span :   Span )  { 
207207        self . inner . borrow_mut ( ) . unwrap_region_constraints ( ) . make_subregion ( 
208-             SubregionOrigin :: RelateRegionParamBound ( DUMMY_SP ,  None ) , 
208+             SubregionOrigin :: RelateRegionParamBound ( span ,  None ) , 
209209            sub, 
210210            sup, 
211211        ) ; 
212212    } 
213213
214-     fn  equate_regions ( & self ,  a :  ty:: Region < ' tcx > ,  b :  ty:: Region < ' tcx > )  { 
214+     fn  equate_regions ( & self ,  a :  ty:: Region < ' tcx > ,  b :  ty:: Region < ' tcx > ,   span :   Span )  { 
215215        self . inner . borrow_mut ( ) . unwrap_region_constraints ( ) . make_eqregion ( 
216-             SubregionOrigin :: RelateRegionParamBound ( DUMMY_SP ,  None ) , 
216+             SubregionOrigin :: RelateRegionParamBound ( span ,  None ) , 
217217            a, 
218218            b, 
219219        ) ; 
220220    } 
221221
222-     fn  register_ty_outlives ( & self ,  ty :  Ty < ' tcx > ,  r :  ty:: Region < ' tcx > )  { 
223-         self . register_region_obligation_with_cause ( ty,  r,  & ObligationCause :: dummy ( ) ) ; 
222+     fn  register_ty_outlives ( & self ,  ty :  Ty < ' tcx > ,  r :  ty:: Region < ' tcx > ,   span :   Span )  { 
223+         self . register_region_obligation_with_cause ( ty,  r,  & ObligationCause :: dummy_with_span ( span ) ) ; 
224224    } 
225225} 
0 commit comments