about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-02-17 06:37:35 +0100
committerGitHub <noreply@github.com>2025-02-17 06:37:35 +0100
commitf3a4f1a02ae83b471916f61d3fc8ccfe7cbcf869 (patch)
tree39dcf4ca08e1982f0d96c1bceb6b883d436a4307 /compiler/rustc_interface/src
parentd5eb31c9347ae3c494c8d723711dacca7d1cfe8b (diff)
parentf666361caa963c3f41934d5b431af24d8894d159 (diff)
downloadrust-f3a4f1a02ae83b471916f61d3fc8ccfe7cbcf869.tar.gz
rust-f3a4f1a02ae83b471916f61d3fc8ccfe7cbcf869.zip
Rollup merge of #136466 - nnethercote:start-removing-Map, r=cjgillot
Start removing `rustc_middle::hir::map::Map`

`rustc_middle::hir::map::Map` is now just a low-value wrapper around `TyCtxt`. This PR starts removing it.

r? `@cjgillot`
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/proc_macro_decls.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/proc_macro_decls.rs b/compiler/rustc_interface/src/proc_macro_decls.rs
index 82593dbc2b7..00600abb5f1 100644
--- a/compiler/rustc_interface/src/proc_macro_decls.rs
+++ b/compiler/rustc_interface/src/proc_macro_decls.rs
@@ -7,7 +7,7 @@ use rustc_span::sym;
 fn proc_macro_decls_static(tcx: TyCtxt<'_>, (): ()) -> Option<LocalDefId> {
     let mut decls = None;
 
-    for id in tcx.hir().items() {
+    for id in tcx.hir_free_items() {
         let attrs = tcx.hir().attrs(id.hir_id());
         if attr::contains_name(attrs, sym::rustc_proc_macro_decls) {
             decls = Some(id.owner_id.def_id);