Skip to content

Commit 4fb1236

Browse files
committed
Do not swallow parent for MacroDef.
1 parent abef2ed commit 4fb1236

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/hir/map

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/hir/map/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub struct Entry<'hir> {
3131
impl<'hir> Entry<'hir> {
3232
fn parent_node(self) -> Option<HirId> {
3333
match self.node {
34-
Node::Crate(_) | Node::MacroDef(_) => None,
34+
Node::Crate(_) => None,
3535
_ => Some(self.parent),
3636
}
3737
}

0 commit comments

Comments
 (0)