summary refs log tree commit diff
path: root/compiler/rustc_lint
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-31 05:37:49 +0000
committerbors <bors@rust-lang.org>2024-01-31 05:37:49 +0000
commitd53ddcd8bbb41cd977ab4f7a54886fd7779c0eba (patch)
tree27dd14038cd56b8d966e89438bec154464855ca5 /compiler/rustc_lint
parent80deabd0987201e1b8d060400f50e03309a0105e (diff)
parentdb41f4aaa0c7a2506b02407c1b5183d84103d24b (diff)
downloadrust-d53ddcd8bbb41cd977ab4f7a54886fd7779c0eba.tar.gz
rust-d53ddcd8bbb41cd977ab4f7a54886fd7779c0eba.zip
Auto merge of #120346 - petrochenkov:ownodes, r=oli-obk
hir: Refactor getters for owner nodes
Diffstat (limited to 'compiler/rustc_lint')
-rw-r--r--compiler/rustc_lint/src/levels.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/levels.rs b/compiler/rustc_lint/src/levels.rs
index d37f0c15171..40fb12b2107 100644
--- a/compiler/rustc_lint/src/levels.rs
+++ b/compiler/rustc_lint/src/levels.rs
@@ -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),