about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-10-10 12:22:22 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-10-13 06:20:11 +1100
commitd5e7c5f3cc9919bf1ad0b61568d74c65639d4e4e (patch)
treeb40fba1aac0f30098244251d26cc82d98f9c98dd /compiler/rustc_driver_impl/src
parent1467ba06b6b50633541dca9ddebcdacd16a499b1 (diff)
downloadrust-d5e7c5f3cc9919bf1ad0b61568d74c65639d4e4e.tar.gz
rust-d5e7c5f3cc9919bf1ad0b61568d74c65639d4e4e.zip
Remove unused `PrinterSupport::hir_map` method.
Diffstat (limited to 'compiler/rustc_driver_impl/src')
-rw-r--r--compiler/rustc_driver_impl/src/pretty.rs16
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
     }