File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
compiler/rustc_driver_impl/src Expand file tree Collapse file tree 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 {
9494 /// `Session` from a value that now owns it.
9595 fn sess ( & self ) -> & Session ;
9696
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-
10197 /// Produces the pretty-print annotation object.
10298 ///
10399 /// (Rust does not yet support upcasting from a trait object to
@@ -125,10 +121,6 @@ impl<'hir> HirPrinterSupport<'hir> for NoAnn<'hir> {
125121 self . sess
126122 }
127123
128- fn hir_map ( & self ) -> Option < hir_map:: Map < ' hir > > {
129- self . tcx . map ( |tcx| tcx. hir ( ) )
130- }
131-
132124 fn pp_ann ( & self ) -> & dyn pprust_hir:: PpAnn {
133125 self
134126 }
@@ -200,10 +192,6 @@ impl<'hir> HirPrinterSupport<'hir> for IdentifiedAnnotation<'hir> {
200192 self . sess
201193 }
202194
203- fn hir_map ( & self ) -> Option < hir_map:: Map < ' hir > > {
204- self . tcx . map ( |tcx| tcx. hir ( ) )
205- }
206-
207195 fn pp_ann ( & self ) -> & dyn pprust_hir:: PpAnn {
208196 self
209197 }
@@ -298,10 +286,6 @@ impl<'tcx> HirPrinterSupport<'tcx> for TypedAnnotation<'tcx> {
298286 self . tcx . sess
299287 }
300288
301- fn hir_map ( & self ) -> Option < hir_map:: Map < ' tcx > > {
302- Some ( self . tcx . hir ( ) )
303- }
304-
305289 fn pp_ann ( & self ) -> & dyn pprust_hir:: PpAnn {
306290 self
307291 }
You can’t perform that action at this time.
0 commit comments