1
Fork 0

Tweak signatures in rustc_middle::hir::map.

This commit is contained in:
Camille GILLOT 2022-10-25 15:07:56 +00:00
parent cc9b259b5e
commit 0ff1d1e122
3 changed files with 11 additions and 4 deletions

View file

@ -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),