File tree 1 file changed +0
-16
lines changed
compiler/rustc_driver_impl/src
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,6 @@ trait HirPrinterSupport<'hir>: pprust_hir::PpAnn {
94
94
/// `Session` from a value that now owns it.
95
95
fn sess ( & self ) -> & Session ;
96
96
97
- /// Provides a uniform interface for re-extracting a reference to an
98
- /// `hir_map::Map` from a value that now owns it.
99
- fn hir_map ( & self ) -> Option < hir_map:: Map < ' hir > > ;
100
-
101
97
/// Produces the pretty-print annotation object.
102
98
///
103
99
/// (Rust does not yet support upcasting from a trait object to
@@ -125,10 +121,6 @@ impl<'hir> HirPrinterSupport<'hir> for NoAnn<'hir> {
125
121
self . sess
126
122
}
127
123
128
- fn hir_map ( & self ) -> Option < hir_map:: Map < ' hir > > {
129
- self . tcx . map ( |tcx| tcx. hir ( ) )
130
- }
131
-
132
124
fn pp_ann ( & self ) -> & dyn pprust_hir:: PpAnn {
133
125
self
134
126
}
@@ -200,10 +192,6 @@ impl<'hir> HirPrinterSupport<'hir> for IdentifiedAnnotation<'hir> {
200
192
self . sess
201
193
}
202
194
203
- fn hir_map ( & self ) -> Option < hir_map:: Map < ' hir > > {
204
- self . tcx . map ( |tcx| tcx. hir ( ) )
205
- }
206
-
207
195
fn pp_ann ( & self ) -> & dyn pprust_hir:: PpAnn {
208
196
self
209
197
}
@@ -298,10 +286,6 @@ impl<'tcx> HirPrinterSupport<'tcx> for TypedAnnotation<'tcx> {
298
286
self . tcx . sess
299
287
}
300
288
301
- fn hir_map ( & self ) -> Option < hir_map:: Map < ' tcx > > {
302
- Some ( self . tcx . hir ( ) )
303
- }
304
-
305
289
fn pp_ann ( & self ) -> & dyn pprust_hir:: PpAnn {
306
290
self
307
291
}
You can’t perform that action at this time.
0 commit comments