diff options
| -rw-r--r-- | compiler/rustc_driver_impl/src/pretty.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/compiler/rustc_driver_impl/src/pretty.rs b/compiler/rustc_driver_impl/src/pretty.rs index b258643e97c..b647bf1c313 100644 --- a/compiler/rustc_driver_impl/src/pretty.rs +++ b/compiler/rustc_driver_impl/src/pretty.rs @@ -94,10 +94,6 @@ trait HirPrinterSupport<'hir>: pprust_hir::PpAnn { /// `Session` from a value that now owns it. fn sess(&self) -> &Session; - /// Provides a uniform interface for re-extracting a reference to an - /// `hir_map::Map` from a value that now owns it. - fn hir_map(&self) -> Option<hir_map::Map<'hir>>; - /// Produces the pretty-print annotation object. /// /// (Rust does not yet support upcasting from a trait object to @@ -125,10 +121,6 @@ impl<'hir> HirPrinterSupport<'hir> for NoAnn<'hir> { self.sess } - fn hir_map(&self) -> Option<hir_map::Map<'hir>> { - self.tcx.map(|tcx| tcx.hir()) - } - fn pp_ann(&self) -> &dyn pprust_hir::PpAnn { self } @@ -200,10 +192,6 @@ impl<'hir> HirPrinterSupport<'hir> for IdentifiedAnnotation<'hir> { self.sess } - fn hir_map(&self) -> Option<hir_map::Map<'hir>> { - self.tcx.map(|tcx| tcx.hir()) - } - fn pp_ann(&self) -> &dyn pprust_hir::PpAnn { self } @@ -298,10 +286,6 @@ impl<'tcx> HirPrinterSupport<'tcx> for TypedAnnotation<'tcx> { self.tcx.sess } - fn hir_map(&self) -> Option<hir_map::Map<'tcx>> { - Some(self.tcx.hir()) - } - fn pp_ann(&self) -> &dyn pprust_hir::PpAnn { self } |
