@@ -82,7 +82,7 @@ pub struct NllTypeRelating<'me, 'bccx, 'tcx> {
82
82
/// - Bivariant means that it doesn't matter.
83
83
ambient_variance : ty:: Variance ,
84
84
85
- ambient_variance_info : ty:: VarianceDiagInfo < ' tcx > ,
85
+ ambient_variance_info : ty:: VarianceDiagInfo < TyCtxt < ' tcx > > ,
86
86
}
87
87
88
88
impl < ' me , ' bccx , ' tcx > NllTypeRelating < ' me , ' bccx , ' tcx > {
@@ -296,7 +296,7 @@ impl<'me, 'bccx, 'tcx> NllTypeRelating<'me, 'bccx, 'tcx> {
296
296
& mut self ,
297
297
sup : ty:: Region < ' tcx > ,
298
298
sub : ty:: Region < ' tcx > ,
299
- info : ty:: VarianceDiagInfo < ' tcx > ,
299
+ info : ty:: VarianceDiagInfo < TyCtxt < ' tcx > > ,
300
300
) {
301
301
let sub = self . type_checker . borrowck_context . universal_regions . to_region_vid ( sub) ;
302
302
let sup = self . type_checker . borrowck_context . universal_regions . to_region_vid ( sup) ;
@@ -327,7 +327,7 @@ impl<'bccx, 'tcx> TypeRelation<'tcx> for NllTypeRelating<'_, 'bccx, 'tcx> {
327
327
fn relate_with_variance < T : Relate < ' tcx > > (
328
328
& mut self ,
329
329
variance : ty:: Variance ,
330
- info : ty:: VarianceDiagInfo < ' tcx > ,
330
+ info : ty:: VarianceDiagInfo < TyCtxt < ' tcx > > ,
331
331
a : T ,
332
332
b : T ,
333
333
) -> RelateResult < ' tcx , T > {
0 commit comments