Skip to content

Commit 2f74d90

Browse files
committed
Update visible_parent_map
1 parent 3f87975 commit 2f74d90

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/librustc/arena.rs

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ macro_rules! arena_types {
9393
>,
9494
[few] get_lib_features: rustc::middle::lib_features::LibFeatures,
9595
[few] defined_lib_features: rustc::middle::lang_items::LanguageItems,
96+
[few] visible_parent_map: rustc::util::nodemap::DefIdMap<rustc::hir::def_id::DefId>,
9697
], $tcx);
9798
)
9899
}

src/librustc/query/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ rustc_queries! {
806806
desc { "calculating the missing lang items in a crate" }
807807
}
808808
query visible_parent_map(_: CrateNum)
809-
-> Lrc<DefIdMap<DefId>> {
809+
-> &'tcx DefIdMap<DefId> {
810810
desc { "calculating the visible parent map" }
811811
}
812812
query missing_extern_crate_item(_: CrateNum) -> bool {

src/librustc_metadata/cstore_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ pub fn provide<'tcx>(providers: &mut Providers<'tcx>) {
371371
}
372372
}
373373

374-
Lrc::new(visible_parent_map)
374+
tcx.arena.alloc(visible_parent_map)
375375
},
376376

377377
..*providers

0 commit comments

Comments
 (0)