@@ -31,7 +31,7 @@ enum UniverseInfoInner<'tcx> {
31
31
Other ,
32
32
}
33
33
34
- impl UniverseInfo < ' tcx > {
34
+ impl < ' tcx > UniverseInfo < ' tcx > {
35
35
crate fn other ( ) -> UniverseInfo < ' tcx > {
36
36
UniverseInfo ( UniverseInfoInner :: Other )
37
37
}
@@ -191,7 +191,7 @@ struct PredicateQuery<'tcx> {
191
191
base_universe : ty:: UniverseIndex ,
192
192
}
193
193
194
- impl TypeOpInfo < ' tcx > for PredicateQuery < ' tcx > {
194
+ impl < ' tcx > TypeOpInfo < ' tcx > for PredicateQuery < ' tcx > {
195
195
fn fallback_error ( & self , tcx : TyCtxt < ' tcx > , span : Span ) -> DiagnosticBuilder < ' tcx > {
196
196
let mut err = tcx. sess . struct_span_err ( span, "higher-ranked lifetime error" ) ;
197
197
err. note ( & format ! ( "could not prove {}" , self . canonical_query. value. value. predicate) ) ;
@@ -231,7 +231,7 @@ struct NormalizeQuery<'tcx, T> {
231
231
base_universe : ty:: UniverseIndex ,
232
232
}
233
233
234
- impl < T > TypeOpInfo < ' tcx > for NormalizeQuery < ' tcx , T >
234
+ impl < ' tcx , T > TypeOpInfo < ' tcx > for NormalizeQuery < ' tcx , T >
235
235
where
236
236
T : Copy + fmt:: Display + TypeFoldable < ' tcx > + ' tcx ,
237
237
{
@@ -291,7 +291,7 @@ struct AscribeUserTypeQuery<'tcx> {
291
291
base_universe : ty:: UniverseIndex ,
292
292
}
293
293
294
- impl TypeOpInfo < ' tcx > for AscribeUserTypeQuery < ' tcx > {
294
+ impl < ' tcx > TypeOpInfo < ' tcx > for AscribeUserTypeQuery < ' tcx > {
295
295
fn fallback_error ( & self , tcx : TyCtxt < ' tcx > , span : Span ) -> DiagnosticBuilder < ' tcx > {
296
296
// FIXME: This error message isn't great, but it doesn't show up in the existing UI tests,
297
297
// and is only the fallback when the nice error fails. Consider improving this some more.
0 commit comments