@@ -52,21 +52,21 @@ use syntax::ast;
52
52
use syntax_pos:: Span ;
53
53
54
54
#[ derive( Clone ) ]
55
- pub struct CombineFields < ' a , ' gcx : ' a +' tcx , ' tcx : ' a > {
56
- pub infcx : & ' a InferCtxt < ' a , ' gcx , ' tcx > ,
55
+ pub struct CombineFields < ' infcx , ' gcx : ' infcx +' tcx , ' tcx : ' infcx > {
56
+ pub infcx : & ' infcx InferCtxt < ' infcx , ' gcx , ' tcx > ,
57
57
pub a_is_expected : bool ,
58
58
pub trace : TypeTrace < ' tcx > ,
59
59
pub cause : Option < ty:: relate:: Cause > ,
60
60
pub obligations : PredicateObligations < ' tcx > ,
61
61
}
62
62
63
- impl < ' a , ' gcx , ' tcx > InferCtxt < ' a , ' gcx , ' tcx > {
63
+ impl < ' infcx , ' gcx , ' tcx > InferCtxt < ' infcx , ' gcx , ' tcx > {
64
64
pub fn super_combine_tys < R > ( & self ,
65
65
relation : & mut R ,
66
66
a : Ty < ' tcx > ,
67
67
b : Ty < ' tcx > )
68
68
-> RelateResult < ' tcx , Ty < ' tcx > >
69
- where R : TypeRelation < ' a , ' gcx , ' tcx >
69
+ where R : TypeRelation < ' infcx , ' gcx , ' tcx >
70
70
{
71
71
let a_is_expected = relation. a_is_expected ( ) ;
72
72
@@ -150,35 +150,35 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
150
150
}
151
151
}
152
152
153
- impl < ' a , ' gcx , ' tcx > CombineFields < ' a , ' gcx , ' tcx > {
154
- pub fn tcx ( & self ) -> TyCtxt < ' a , ' gcx , ' tcx > {
153
+ impl < ' infcx , ' gcx , ' tcx > CombineFields < ' infcx , ' gcx , ' tcx > {
154
+ pub fn tcx ( & self ) -> TyCtxt < ' infcx , ' gcx , ' tcx > {
155
155
self . infcx . tcx
156
156
}
157
157
158
- pub fn switch_expected ( & self ) -> CombineFields < ' a , ' gcx , ' tcx > {
158
+ pub fn switch_expected ( & self ) -> CombineFields < ' infcx , ' gcx , ' tcx > {
159
159
CombineFields {
160
160
a_is_expected : !self . a_is_expected ,
161
161
..( * self ) . clone ( )
162
162
}
163
163
}
164
164
165
- pub fn equate ( & self ) -> Equate < ' a , ' gcx , ' tcx > {
165
+ pub fn equate ( & self ) -> Equate < ' infcx , ' gcx , ' tcx > {
166
166
Equate :: new ( self . clone ( ) )
167
167
}
168
168
169
- pub fn bivariate ( & self ) -> Bivariate < ' a , ' gcx , ' tcx > {
169
+ pub fn bivariate ( & self ) -> Bivariate < ' infcx , ' gcx , ' tcx > {
170
170
Bivariate :: new ( self . clone ( ) )
171
171
}
172
172
173
- pub fn sub ( & self ) -> Sub < ' a , ' gcx , ' tcx > {
173
+ pub fn sub ( & self ) -> Sub < ' infcx , ' gcx , ' tcx > {
174
174
Sub :: new ( self . clone ( ) )
175
175
}
176
176
177
- pub fn lub ( & self ) -> Lub < ' a , ' gcx , ' tcx > {
177
+ pub fn lub ( & self ) -> Lub < ' infcx , ' gcx , ' tcx > {
178
178
Lub :: new ( self . clone ( ) )
179
179
}
180
180
181
- pub fn glb ( & self ) -> Glb < ' a , ' gcx , ' tcx > {
181
+ pub fn glb ( & self ) -> Glb < ' infcx , ' gcx , ' tcx > {
182
182
Glb :: new ( self . clone ( ) )
183
183
}
184
184
0 commit comments