@@ -188,7 +188,7 @@ impl PpSourceMode {
188188 _ => panic ! ( "Should use call_with_pp_support_hir" ) ,
189189 }
190190 }
191- fn call_with_pp_support_hir < ' tcx , A , F > ( & self , tcx : TyCtxt < ' tcx > , f : F ) -> A
191+ fn call_with_pp_support_hir < A , F > ( & self , tcx : TyCtxt < ' _ > , f : F ) -> A
192192 where
193193 F : FnOnce ( & dyn HirPrinterSupport < ' _ > , & hir:: Crate ) -> A ,
194194 {
@@ -228,7 +228,7 @@ impl PpSourceMode {
228228trait PrinterSupport : pprust:: PpAnn {
229229 /// Provides a uniform interface for re-extracting a reference to a
230230 /// `Session` from a value that now owns it.
231- fn sess < ' a > ( & ' a self ) -> & ' a Session ;
231+ fn sess ( & self ) -> & Session ;
232232
233233 /// Produces the pretty-print annotation object.
234234 ///
@@ -240,7 +240,7 @@ trait PrinterSupport: pprust::PpAnn {
240240trait HirPrinterSupport < ' hir > : pprust_hir:: PpAnn {
241241 /// Provides a uniform interface for re-extracting a reference to a
242242 /// `Session` from a value that now owns it.
243- fn sess < ' a > ( & ' a self ) -> & ' a Session ;
243+ fn sess ( & self ) -> & Session ;
244244
245245 /// Provides a uniform interface for re-extracting a reference to an
246246 /// `hir_map::Map` from a value that now owns it.
@@ -272,7 +272,7 @@ struct NoAnn<'hir> {
272272}
273273
274274impl < ' hir > PrinterSupport for NoAnn < ' hir > {
275- fn sess < ' a > ( & ' a self ) -> & ' a Session {
275+ fn sess ( & self ) -> & Session {
276276 self . sess
277277 }
278278
@@ -282,7 +282,7 @@ impl<'hir> PrinterSupport for NoAnn<'hir> {
282282}
283283
284284impl < ' hir > HirPrinterSupport < ' hir > for NoAnn < ' hir > {
285- fn sess < ' a > ( & ' a self ) -> & ' a Session {
285+ fn sess ( & self ) -> & Session {
286286 self . sess
287287 }
288288
@@ -313,7 +313,7 @@ struct IdentifiedAnnotation<'hir> {
313313}
314314
315315impl < ' hir > PrinterSupport for IdentifiedAnnotation < ' hir > {
316- fn sess < ' a > ( & ' a self ) -> & ' a Session {
316+ fn sess ( & self ) -> & Session {
317317 self . sess
318318 }
319319
@@ -360,7 +360,7 @@ impl<'hir> pprust::PpAnn for IdentifiedAnnotation<'hir> {
360360}
361361
362362impl < ' hir > HirPrinterSupport < ' hir > for IdentifiedAnnotation < ' hir > {
363- fn sess < ' a > ( & ' a self ) -> & ' a Session {
363+ fn sess ( & self ) -> & Session {
364364 self . sess
365365 }
366366
@@ -458,7 +458,7 @@ struct TypedAnnotation<'a, 'tcx> {
458458}
459459
460460impl < ' b , ' tcx > HirPrinterSupport < ' tcx > for TypedAnnotation < ' b , ' tcx > {
461- fn sess < ' a > ( & ' a self ) -> & ' a Session {
461+ fn sess ( & self ) -> & Session {
462462 & self . tcx . sess
463463 }
464464
@@ -866,8 +866,8 @@ pub fn print_after_hir_lowering<'tcx>(
866866// analysis is performed. However, we want to call `phase_3_run_analysis_passes`
867867// with a different callback than the standard driver, so that isn't easy.
868868// Instead, we call that function ourselves.
869- fn print_with_analysis < ' tcx > (
870- tcx : TyCtxt < ' tcx > ,
869+ fn print_with_analysis (
870+ tcx : TyCtxt < ' _ > ,
871871 ppm : PpMode ,
872872 uii : Option < UserIdentifiedItem > ,
873873 ofile : Option < & Path > ,
0 commit comments