Update visible_parent_map
This commit is contained in:
parent
3f87975d65
commit
2f74d90ef3
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue