about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/context.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-02-21 07:54:35 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-02-21 14:31:09 +1100
commit806be25fc9d519d32db1941b0c67a06c8a6faa40 (patch)
tree3c0b3d57fe4f10663e171164338aeafead10d545 /compiler/rustc_middle/src/ty/context.rs
parent43c2b0086a60ad9864af5ead49b058e8d8ef1de8 (diff)
downloadrust-806be25fc9d519d32db1941b0c67a06c8a6faa40.tar.gz
rust-806be25fc9d519d32db1941b0c67a06c8a6faa40.zip
Move methods from Map to TyCtxt, part 3.
Continuing the work from #137162.

Every method gains a `hir_` prefix.
Diffstat (limited to 'compiler/rustc_middle/src/ty/context.rs')
-rw-r--r--compiler/rustc_middle/src/ty/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs
index 35893ad953d..c0bd0d2b2b0 100644
--- a/compiler/rustc_middle/src/ty/context.rs
+++ b/compiler/rustc_middle/src/ty/context.rs
@@ -3019,7 +3019,7 @@ impl<'tcx> TyCtxt<'tcx> {
     /// Find the crate root and the appropriate span where `use` and outer attributes can be
     /// inserted at.
     pub fn crate_level_attribute_injection_span(self, hir_id: HirId) -> Option<Span> {
-        for (_hir_id, node) in self.hir().parent_iter(hir_id) {
+        for (_hir_id, node) in self.hir_parent_iter(hir_id) {
             if let hir::Node::Crate(m) = node {
                 return Some(m.spans.inject_use_span.shrink_to_lo());
             }