about summary refs log tree commit diff
path: root/compiler/rustc_passes/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-02-05 15:47:44 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2021-07-25 12:18:56 +0200
commit36a28060f146a5c5ff6445659ce5962009c8829d (patch)
treeccdb28560a1d92afd48fea0f7cab640b0842e33c /compiler/rustc_passes/src
parent0443424954f32d94f847322e85c77df50d44f80f (diff)
downloadrust-36a28060f146a5c5ff6445659ce5962009c8829d.tar.gz
rust-36a28060f146a5c5ff6445659ce5962009c8829d.zip
Merge the BTreeMap in hir::Crate.
Diffstat (limited to 'compiler/rustc_passes/src')
-rw-r--r--compiler/rustc_passes/src/diagnostic_items.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/diagnostic_items.rs b/compiler/rustc_passes/src/diagnostic_items.rs
index ddcc6fc123f..3cf1d0cdd94 100644
--- a/compiler/rustc_passes/src/diagnostic_items.rs
+++ b/compiler/rustc_passes/src/diagnostic_items.rs
@@ -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);
     }