about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-10-25 15:07:56 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2022-11-11 10:10:16 +0000
commit0ff1d1e122766d44292d22245c05e53d9b324f8e (patch)
treef2f072cd99f0a187cea760af73773eaa2aaa1dc0 /compiler/rustc_hir_analysis/src
parentcc9b259b5e94e4543b96dca236e3a1af5ec496c9 (diff)
downloadrust-0ff1d1e122766d44292d22245c05e53d9b324f8e.tar.gz
rust-0ff1d1e122766d44292d22245c05e53d9b324f8e.zip
Tweak signatures in rustc_middle::hir::map.
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
-rw-r--r--compiler/rustc_hir_analysis/src/check/wfcheck.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/wfcheck.rs b/compiler/rustc_hir_analysis/src/check/wfcheck.rs
index 6a12db9d36a..bc9c2b6025c 100644
--- a/compiler/rustc_hir_analysis/src/check/wfcheck.rs
+++ b/compiler/rustc_hir_analysis/src/check/wfcheck.rs
@@ -117,7 +117,7 @@ pub(super) fn enter_wf_checking_ctxt<'tcx, F>(
 }
 
 fn check_well_formed(tcx: TyCtxt<'_>, def_id: hir::OwnerId) {
-    let node = tcx.hir().expect_owner(def_id);
+    let node = tcx.hir().owner(def_id);
     match node {
         hir::OwnerNode::Crate(_) => {}
         hir::OwnerNode::Item(item) => check_item(tcx, item),