mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
hir: Make sure all HirId
s have corresponding HIR Node
s
This commit is contained in:
parent
7895b98712
commit
b168c20951
@ -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…
Reference in New Issue
Block a user