Skip to content
Permalink
Browse files

Update visible_parent_map

  • Loading branch information...
Zoxc committed Dec 1, 2018
1 parent 3f87975 commit 2f74d90ef3e4f6d38d4ae331a8f277fe92b3dbce
Showing with 3 additions and 2 deletions.
  1. +1 −0 src/librustc/arena.rs
  2. +1 −1 src/librustc/query/mod.rs
  3. +1 −1 src/librustc_metadata/cstore_impl.rs
@@ -93,6 +93,7 @@ macro_rules! arena_types {
>,
[few] get_lib_features: rustc::middle::lib_features::LibFeatures,
[few] defined_lib_features: rustc::middle::lang_items::LanguageItems,
[few] visible_parent_map: rustc::util::nodemap::DefIdMap<rustc::hir::def_id::DefId>,
], $tcx);
)
}
@@ -806,7 +806,7 @@ rustc_queries! {
desc { "calculating the missing lang items in a crate" }
}
query visible_parent_map(_: CrateNum)
-> Lrc<DefIdMap<DefId>> {
-> &'tcx DefIdMap<DefId> {
desc { "calculating the visible parent map" }
}
query missing_extern_crate_item(_: CrateNum) -> bool {
@@ -371,7 +371,7 @@ pub fn provide<'tcx>(providers: &mut Providers<'tcx>) {
}
}

Lrc::new(visible_parent_map)
tcx.arena.alloc(visible_parent_map)
},

..*providers

0 comments on commit 2f74d90

Please sign in to comment.
You can’t perform that action at this time.