Allow #[rustc_diagnostic_item] on macros.

This commit is contained in:
Mara Bos 2020-10-18 22:19:13 +02:00
parent a46679098f
commit 5b3b80a710

View file

@ -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
}