Tweak signatures in rustc_middle::hir::map.
This commit is contained in:
parent
cc9b259b5e
commit
0ff1d1e122
3 changed files with 11 additions and 4 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue