Skip to content

Commit

Permalink
Do not swallow parent for MacroDef.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Jan 5, 2021
1 parent abef2ed commit 4fb1236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/hir/map/mod.rs
Expand Up @@ -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),
}
}
Expand Down

0 comments on commit 4fb1236

Please sign in to comment.