Allow #[rustc_diagnostic_item] on macros.
This commit is contained in:
parent
a46679098f
commit
5b3b80a710
1 changed files with 4 additions and 0 deletions
|
@ -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
|
collector.items
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue