@@ -122,11 +122,11 @@ fn relate_item_substs<'a,'tcx:'a,R>(relation: &mut R,
122
122
relate_substs ( relation, opt_variances, a_subst, b_subst)
123
123
}
124
124
125
- fn relate_substs < ' a , ' tcx , R > ( relation : & mut R ,
126
- variances : Option < & ty:: ItemVariances > ,
127
- a_subst : & Substs < ' tcx > ,
128
- b_subst : & Substs < ' tcx > )
129
- -> RelateResult < ' tcx , Substs < ' tcx > >
125
+ fn relate_substs < ' a , ' tcx : ' a , R > ( relation : & mut R ,
126
+ variances : Option < & ty:: ItemVariances > ,
127
+ a_subst : & Substs < ' tcx > ,
128
+ b_subst : & Substs < ' tcx > )
129
+ -> RelateResult < ' tcx , Substs < ' tcx > >
130
130
where R : TypeRelation < ' a , ' tcx >
131
131
{
132
132
let mut substs = Substs :: empty ( ) ;
@@ -161,11 +161,11 @@ fn relate_substs<'a,'tcx,R>(relation: &mut R,
161
161
Ok ( substs)
162
162
}
163
163
164
- fn relate_type_params < ' a , ' tcx , R > ( relation : & mut R ,
165
- variances : Option < & [ ty:: Variance ] > ,
166
- a_tys : & [ Ty < ' tcx > ] ,
167
- b_tys : & [ Ty < ' tcx > ] )
168
- -> RelateResult < ' tcx , Vec < Ty < ' tcx > > >
164
+ fn relate_type_params < ' a , ' tcx : ' a , R > ( relation : & mut R ,
165
+ variances : Option < & [ ty:: Variance ] > ,
166
+ a_tys : & [ Ty < ' tcx > ] ,
167
+ b_tys : & [ Ty < ' tcx > ] )
168
+ -> RelateResult < ' tcx , Vec < Ty < ' tcx > > >
169
169
where R : TypeRelation < ' a , ' tcx >
170
170
{
171
171
if a_tys. len ( ) != b_tys. len ( ) {
@@ -264,10 +264,10 @@ impl<'a,'tcx:'a> Relate<'a,'tcx> for ty::FnSig<'tcx> {
264
264
}
265
265
}
266
266
267
- fn relate_arg_vecs < ' a , ' tcx , R > ( relation : & mut R ,
268
- a_args : & [ Ty < ' tcx > ] ,
269
- b_args : & [ Ty < ' tcx > ] )
270
- -> RelateResult < ' tcx , Vec < Ty < ' tcx > > >
267
+ fn relate_arg_vecs < ' a , ' tcx : ' a , R > ( relation : & mut R ,
268
+ a_args : & [ Ty < ' tcx > ] ,
269
+ b_args : & [ Ty < ' tcx > ] )
270
+ -> RelateResult < ' tcx , Vec < Ty < ' tcx > > >
271
271
where R : TypeRelation < ' a , ' tcx >
272
272
{
273
273
if a_args. len ( ) != b_args. len ( ) {
@@ -629,10 +629,10 @@ impl<'a,'tcx:'a,T> Relate<'a,'tcx> for Box<T>
629
629
///////////////////////////////////////////////////////////////////////////
630
630
// Error handling
631
631
632
- pub fn expected_found < ' a , ' tcx , R , T > ( relation : & mut R ,
633
- a : & T ,
634
- b : & T )
635
- -> ty:: expected_found < T >
632
+ pub fn expected_found < ' a , ' tcx : ' a , R , T > ( relation : & mut R ,
633
+ a : & T ,
634
+ b : & T )
635
+ -> ty:: expected_found < T >
636
636
where R : TypeRelation < ' a , ' tcx > , T : Clone
637
637
{
638
638
expected_found_bool ( relation. a_is_expected ( ) , a, b)
0 commit comments