hir: Remove hir::Map::{owner,expect_owner}
This commit is contained in:
@@ -181,7 +181,7 @@ fn shallow_lint_levels_on(tcx: TyCtxt<'_>, owner: hir::OwnerId) -> ShallowLintLe
|
||||
// Otherwise, we need to visit the attributes in source code order, so we fetch HIR and do
|
||||
// a standard visit.
|
||||
// FIXME(#102522) Just iterate on attrs once that iteration order matches HIR's.
|
||||
_ => match tcx.hir().owner(owner) {
|
||||
_ => match tcx.hir_owner_node(owner) {
|
||||
hir::OwnerNode::Item(item) => levels.visit_item(item),
|
||||
hir::OwnerNode::ForeignItem(item) => levels.visit_foreign_item(item),
|
||||
hir::OwnerNode::TraitItem(item) => levels.visit_trait_item(item),
|
||||
|
||||
Reference in New Issue
Block a user