@@ -224,12 +224,12 @@ trait HirPrinterSupport<'ast>: pprust_hir::PpAnn {
224
224
fn pp_ann < ' a > ( & ' a self ) -> & ' a pprust_hir:: PpAnn ;
225
225
}
226
226
227
- struct NoAnn < ' ast , ' tcx > {
228
- sess : & ' tcx Session ,
227
+ struct NoAnn < ' ast > {
228
+ sess : & ' ast Session ,
229
229
ast_map : Option < hir_map:: Map < ' ast > >
230
230
}
231
231
232
- impl < ' ast , ' tcx > PrinterSupport < ' ast > for NoAnn < ' ast , ' tcx > {
232
+ impl < ' ast > PrinterSupport < ' ast > for NoAnn < ' ast > {
233
233
fn sess < ' a > ( & ' a self ) -> & ' a Session { self . sess }
234
234
235
235
fn ast_map < ' a > ( & ' a self ) -> Option < & ' a hir_map:: Map < ' ast > > {
@@ -239,7 +239,7 @@ impl<'ast, 'tcx> PrinterSupport<'ast> for NoAnn<'ast, 'tcx> {
239
239
fn pp_ann < ' a > ( & ' a self ) -> & ' a pprust:: PpAnn { self }
240
240
}
241
241
242
- impl < ' ast , ' tcx > HirPrinterSupport < ' ast > for NoAnn < ' ast , ' tcx > {
242
+ impl < ' ast > HirPrinterSupport < ' ast > for NoAnn < ' ast > {
243
243
fn sess < ' a > ( & ' a self ) -> & ' a Session { self . sess }
244
244
245
245
fn ast_map < ' a > ( & ' a self ) -> Option < & ' a hir_map:: Map < ' ast > > {
@@ -249,15 +249,15 @@ impl<'ast, 'tcx> HirPrinterSupport<'ast> for NoAnn<'ast, 'tcx> {
249
249
fn pp_ann < ' a > ( & ' a self ) -> & ' a pprust_hir:: PpAnn { self }
250
250
}
251
251
252
- impl < ' ast , ' tcx > pprust:: PpAnn for NoAnn < ' ast , ' tcx > { }
253
- impl < ' ast , ' tcx > pprust_hir:: PpAnn for NoAnn < ' ast , ' tcx > { }
252
+ impl < ' ast > pprust:: PpAnn for NoAnn < ' ast > { }
253
+ impl < ' ast > pprust_hir:: PpAnn for NoAnn < ' ast > { }
254
254
255
- struct IdentifiedAnnotation < ' ast , ' tcx > {
256
- sess : & ' tcx Session ,
255
+ struct IdentifiedAnnotation < ' ast > {
256
+ sess : & ' ast Session ,
257
257
ast_map : Option < hir_map:: Map < ' ast > > ,
258
258
}
259
259
260
- impl < ' ast , ' tcx > PrinterSupport < ' ast > for IdentifiedAnnotation < ' ast , ' tcx > {
260
+ impl < ' ast > PrinterSupport < ' ast > for IdentifiedAnnotation < ' ast > {
261
261
fn sess < ' a > ( & ' a self ) -> & ' a Session { self . sess }
262
262
263
263
fn ast_map < ' a > ( & ' a self ) -> Option < & ' a hir_map:: Map < ' ast > > {
@@ -267,7 +267,7 @@ impl<'ast, 'tcx> PrinterSupport<'ast> for IdentifiedAnnotation<'ast, 'tcx> {
267
267
fn pp_ann < ' a > ( & ' a self ) -> & ' a pprust:: PpAnn { self }
268
268
}
269
269
270
- impl < ' ast , ' tcx > pprust:: PpAnn for IdentifiedAnnotation < ' ast , ' tcx > {
270
+ impl < ' ast > pprust:: PpAnn for IdentifiedAnnotation < ' ast > {
271
271
fn pre ( & self ,
272
272
s : & mut pprust:: State ,
273
273
node : pprust:: AnnNode ) -> io:: Result < ( ) > {
@@ -307,7 +307,7 @@ impl<'ast, 'tcx> pprust::PpAnn for IdentifiedAnnotation<'ast, 'tcx> {
307
307
}
308
308
}
309
309
310
- impl < ' ast , ' tcx > HirPrinterSupport < ' ast > for IdentifiedAnnotation < ' ast , ' tcx > {
310
+ impl < ' ast > HirPrinterSupport < ' ast > for IdentifiedAnnotation < ' ast > {
311
311
fn sess < ' a > ( & ' a self ) -> & ' a Session { self . sess }
312
312
313
313
fn ast_map < ' a > ( & ' a self ) -> Option < & ' a hir_map:: Map < ' ast > > {
@@ -317,7 +317,7 @@ impl<'ast, 'tcx> HirPrinterSupport<'ast> for IdentifiedAnnotation<'ast, 'tcx> {
317
317
fn pp_ann < ' a > ( & ' a self ) -> & ' a pprust_hir:: PpAnn { self }
318
318
}
319
319
320
- impl < ' ast , ' tcx > pprust_hir:: PpAnn for IdentifiedAnnotation < ' ast , ' tcx > {
320
+ impl < ' ast > pprust_hir:: PpAnn for IdentifiedAnnotation < ' ast > {
321
321
fn pre ( & self ,
322
322
s : & mut pprust_hir:: State ,
323
323
node : pprust_hir:: AnnNode ) -> io:: Result < ( ) > {
@@ -356,12 +356,12 @@ impl<'ast, 'tcx> pprust_hir::PpAnn for IdentifiedAnnotation<'ast, 'tcx> {
356
356
}
357
357
}
358
358
359
- struct HygieneAnnotation < ' ast , ' tcx > {
360
- sess : & ' tcx Session ,
359
+ struct HygieneAnnotation < ' ast > {
360
+ sess : & ' ast Session ,
361
361
ast_map : Option < hir_map:: Map < ' ast > > ,
362
362
}
363
363
364
- impl < ' ast , ' tcx > PrinterSupport < ' ast > for HygieneAnnotation < ' ast , ' tcx > {
364
+ impl < ' ast > PrinterSupport < ' ast > for HygieneAnnotation < ' ast > {
365
365
fn sess < ' a > ( & ' a self ) -> & ' a Session { self . sess }
366
366
367
367
fn ast_map < ' a > ( & ' a self ) -> Option < & ' a hir_map:: Map < ' ast > > {
@@ -371,7 +371,7 @@ impl<'ast, 'tcx> PrinterSupport<'ast> for HygieneAnnotation<'ast, 'tcx> {
371
371
fn pp_ann < ' a > ( & ' a self ) -> & ' a pprust:: PpAnn { self }
372
372
}
373
373
374
- impl < ' ast , ' tcx > pprust:: PpAnn for HygieneAnnotation < ' ast , ' tcx > {
374
+ impl < ' ast > pprust:: PpAnn for HygieneAnnotation < ' ast > {
375
375
fn post ( & self ,
376
376
s : & mut pprust:: State ,
377
377
node : pprust:: AnnNode ) -> io:: Result < ( ) > {
0 commit comments