Do not swallow parent for MacroDef.

This commit is contained in:
Camille GILLOT 2020-12-29 21:43:17 +01:00
parent abef2ed2bc
commit 4fb12369b3
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ pub struct Entry<'hir> {
impl<'hir> Entry<'hir> {
fn parent_node(self) -> Option<HirId> {
match self.node {
Node::Crate(_) | Node::MacroDef(_) => None,
Node::Crate(_) => None,
_ => Some(self.parent),
}
}