1
Fork 0

Update visible_parent_map

This commit is contained in:
John Kåre Alsaker 2018-12-01 17:02:51 +01:00
parent 3f87975d65
commit 2f74d90ef3
3 changed files with 3 additions and 2 deletions

View file

@ -93,6 +93,7 @@ macro_rules! arena_types {
>, >,
[few] get_lib_features: rustc::middle::lib_features::LibFeatures, [few] get_lib_features: rustc::middle::lib_features::LibFeatures,
[few] defined_lib_features: rustc::middle::lang_items::LanguageItems, [few] defined_lib_features: rustc::middle::lang_items::LanguageItems,
[few] visible_parent_map: rustc::util::nodemap::DefIdMap<rustc::hir::def_id::DefId>,
], $tcx); ], $tcx);
) )
} }

View file

@ -806,7 +806,7 @@ rustc_queries! {
desc { "calculating the missing lang items in a crate" } desc { "calculating the missing lang items in a crate" }
} }
query visible_parent_map(_: CrateNum) query visible_parent_map(_: CrateNum)
-> Lrc<DefIdMap<DefId>> { -> &'tcx DefIdMap<DefId> {
desc { "calculating the visible parent map" } desc { "calculating the visible parent map" }
} }
query missing_extern_crate_item(_: CrateNum) -> bool { query missing_extern_crate_item(_: CrateNum) -> bool {

View file

@ -371,7 +371,7 @@ pub fn provide<'tcx>(providers: &mut Providers<'tcx>) {
} }
} }
Lrc::new(visible_parent_map) tcx.arena.alloc(visible_parent_map)
}, },
..*providers ..*providers