@@ -96,7 +96,7 @@ trait PrinterSupport: pprust::PpAnn {
96
96
///
97
97
/// (Rust does not yet support upcasting from a trait object to
98
98
/// an object for one of its super-traits.)
99
- fn pp_ann < ' a > ( & ' a self ) -> & ' a dyn pprust:: PpAnn ;
99
+ fn pp_ann ( & self ) -> & dyn pprust:: PpAnn ;
100
100
}
101
101
102
102
trait HirPrinterSupport < ' hir > : pprust_hir:: PpAnn {
@@ -106,13 +106,13 @@ trait HirPrinterSupport<'hir>: pprust_hir::PpAnn {
106
106
107
107
/// Provides a uniform interface for re-extracting a reference to an
108
108
/// `hir_map::Map` from a value that now owns it.
109
- fn hir_map < ' a > ( & ' a self ) -> Option < & ' a hir_map:: Map < ' hir > > ;
109
+ fn hir_map ( & self ) -> Option < & hir_map:: Map < ' hir > > ;
110
110
111
111
/// Produces the pretty-print annotation object.
112
112
///
113
113
/// (Rust does not yet support upcasting from a trait object to
114
114
/// an object for one of its super-traits.)
115
- fn pp_ann < ' a > ( & ' a self ) -> & ' a dyn pprust_hir:: PpAnn ;
115
+ fn pp_ann ( & self ) -> & dyn pprust_hir:: PpAnn ;
116
116
117
117
/// Computes an user-readable representation of a path, if possible.
118
118
fn node_path ( & self , id : hir:: HirId ) -> Option < String > {
@@ -132,7 +132,7 @@ impl<'hir> PrinterSupport for NoAnn<'hir> {
132
132
self . sess
133
133
}
134
134
135
- fn pp_ann < ' a > ( & ' a self ) -> & ' a dyn pprust:: PpAnn {
135
+ fn pp_ann ( & self ) -> & dyn pprust:: PpAnn {
136
136
self
137
137
}
138
138
}
@@ -142,11 +142,11 @@ impl<'hir> HirPrinterSupport<'hir> for NoAnn<'hir> {
142
142
self . sess
143
143
}
144
144
145
- fn hir_map < ' a > ( & ' a self ) -> Option < & ' a hir_map:: Map < ' hir > > {
145
+ fn hir_map ( & self ) -> Option < & hir_map:: Map < ' hir > > {
146
146
self . tcx . map ( |tcx| * tcx. hir ( ) )
147
147
}
148
148
149
- fn pp_ann < ' a > ( & ' a self ) -> & ' a dyn pprust_hir:: PpAnn {
149
+ fn pp_ann ( & self ) -> & dyn pprust_hir:: PpAnn {
150
150
self
151
151
}
152
152
}
@@ -170,7 +170,7 @@ impl<'hir> PrinterSupport for IdentifiedAnnotation<'hir> {
170
170
self . sess
171
171
}
172
172
173
- fn pp_ann < ' a > ( & ' a self ) -> & ' a dyn pprust:: PpAnn {
173
+ fn pp_ann ( & self ) -> & dyn pprust:: PpAnn {
174
174
self
175
175
}
176
176
}
@@ -216,11 +216,11 @@ impl<'hir> HirPrinterSupport<'hir> for IdentifiedAnnotation<'hir> {
216
216
self . sess
217
217
}
218
218
219
- fn hir_map < ' a > ( & ' a self ) -> Option < & ' a hir_map:: Map < ' hir > > {
219
+ fn hir_map ( & self ) -> Option < & hir_map:: Map < ' hir > > {
220
220
self . tcx . map ( |tcx| * tcx. hir ( ) )
221
221
}
222
222
223
- fn pp_ann < ' a > ( & ' a self ) -> & ' a dyn pprust_hir:: PpAnn {
223
+ fn pp_ann ( & self ) -> & dyn pprust_hir:: PpAnn {
224
224
self
225
225
}
226
226
}
@@ -315,11 +315,11 @@ impl<'b, 'tcx> HirPrinterSupport<'tcx> for TypedAnnotation<'b, 'tcx> {
315
315
& self . tcx . sess
316
316
}
317
317
318
- fn hir_map < ' a > ( & ' a self ) -> Option < & ' a hir_map:: Map < ' tcx > > {
318
+ fn hir_map ( & self ) -> Option < & hir_map:: Map < ' tcx > > {
319
319
Some ( & self . tcx . hir ( ) )
320
320
}
321
321
322
- fn pp_ann < ' a > ( & ' a self ) -> & ' a dyn pprust_hir:: PpAnn {
322
+ fn pp_ann ( & self ) -> & dyn pprust_hir:: PpAnn {
323
323
self
324
324
}
325
325
0 commit comments