about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/check/check.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-28 16:11:33 +0000
committerbors <bors@rust-lang.org>2023-01-28 16:11:33 +0000
commitd6f0642827e21a088b0130c84857d84f5433301d (patch)
tree9d109467a036373273b6166d41cc5bd855618a02 /compiler/rustc_hir_analysis/src/check/check.rs
parentbca8b4dc32ec20f9a4e0ca55f54e5b2a531936fc (diff)
parent1aab86eae2f9e3e442f39577bd1bd62bccd8cc0c (diff)
downloadrust-d6f0642827e21a088b0130c84857d84f5433301d.tar.gz
rust-d6f0642827e21a088b0130c84857d84f5433301d.zip
Auto merge of #107206 - cjgillot:no-h2l-map, r=WaffleLapkin
Remove HirId -> LocalDefId map from HIR.

Having this map in HIR prevents the creating of new definitions after HIR has been built.
Thankfully, we do not need it.

Based on https://github.com/rust-lang/rust/pull/103902
Diffstat (limited to 'compiler/rustc_hir_analysis/src/check/check.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/check/check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/check.rs b/compiler/rustc_hir_analysis/src/check/check.rs
index c89db538aa6..6f4ebc987e6 100644
--- a/compiler/rustc_hir_analysis/src/check/check.rs
+++ b/compiler/rustc_hir_analysis/src/check/check.rs
@@ -665,7 +665,7 @@ fn check_item_type(tcx: TyCtxt<'_>, id: hir::ItemId) {
         DefKind::GlobalAsm => {
             let it = tcx.hir().item(id);
             let hir::ItemKind::GlobalAsm(asm) = it.kind else { span_bug!(it.span, "DefKind::GlobalAsm but got {:#?}", it) };
-            InlineAsmCtxt::new_global_asm(tcx).check_asm(asm, id.hir_id());
+            InlineAsmCtxt::new_global_asm(tcx).check_asm(asm, id.owner_id.def_id);
         }
         _ => {}
     }