mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Update visible_parent_map
This commit is contained in:
@@ -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 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user