Skip to content

Commit

Permalink
Allow #[rustc_diagnostic_item] on macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Oct 18, 2020
1 parent a466790 commit 5b3b80a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/rustc_passes/src/diagnostic_items.rs
Expand Up @@ -113,6 +113,10 @@ fn collect<'tcx>(tcx: TyCtxt<'tcx>) -> FxHashMap<Symbol, DefId> {
}
}

for m in tcx.hir().krate().exported_macros {
collector.observe_item(m.attrs, m.hir_id);
}

collector.items
}

Expand Down

0 comments on commit 5b3b80a

Please sign in to comment.