Merge the BTreeMap in hir::Crate.
This commit is contained in:
@@ -108,7 +108,7 @@ fn diagnostic_items<'tcx>(tcx: TyCtxt<'tcx>, cnum: CrateNum) -> FxHashMap<Symbol
|
||||
// Collect diagnostic items in this crate.
|
||||
tcx.hir().krate().visit_all_item_likes(&mut collector);
|
||||
|
||||
for m in tcx.hir().krate().exported_macros {
|
||||
for m in tcx.hir().krate().exported_macros() {
|
||||
collector.observe_item(m.def_id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user