Skip to content

Commit 124555a

Browse files
committed
Auto merge of #92169 - In-line:no-cache-selector-lrc, r=Mark-Simulacrum
Remove ArenaCacheSelector for visible_parent_map query ( + LRC)
2 parents 1bd4fdc + 852dea8 commit 124555a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ pub(in crate::rmeta) fn provide(providers: &mut Providers) {
352352
visible_parent_map.entry(child).or_insert(parent);
353353
}
354354

355-
visible_parent_map
355+
Lrc::new(visible_parent_map)
356356
},
357357

358358
dependency_formats: |tcx, ()| Lrc::new(crate::dependency_format::calculate(tcx)),

compiler/rustc_middle/src/query/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1569,8 +1569,7 @@ rustc_queries! {
15691569
desc { "calculating the missing lang items in a crate" }
15701570
separate_provide_extern
15711571
}
1572-
query visible_parent_map(_: ()) -> DefIdMap<DefId> {
1573-
storage(ArenaCacheSelector<'tcx>)
1572+
query visible_parent_map(_: ()) -> Lrc<DefIdMap<DefId>> {
15741573
desc { "calculating the visible parent map" }
15751574
}
15761575
query trimmed_def_paths(_: ()) -> FxHashMap<DefId, Symbol> {

0 commit comments

Comments
 (0)