hir: Make sure all HirIds have corresponding HIR Nodes
This commit is contained in:
parent
7895b98712
commit
b168c20951
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ impl Visitor<'_> for IdentVisitor<'_, '_> {
|
|||
cx.tcx.opt_hir_node(hir_id)
|
||||
} else {
|
||||
let owner = cx.tcx.hir_owner_nodes(hir_id.owner);
|
||||
owner.nodes.get(hir_id.local_id).copied().flatten().map(|p| p.node)
|
||||
owner.nodes.get(hir_id.local_id).copied().map(|p| p.node)
|
||||
};
|
||||
let Some(node) = node else {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue