Auto merge of #92169 - In-line:no-cache-selector-lrc, r=Mark-Simulacrum

Remove ArenaCacheSelector for visible_parent_map query ( + LRC)
This commit is contained in:
bors 2022-01-12 21:04:40 +00:00
commit 124555a69e
2 changed files with 2 additions and 3 deletions

View file

@ -352,7 +352,7 @@ pub(in crate::rmeta) fn provide(providers: &mut Providers) {
visible_parent_map.entry(child).or_insert(parent); visible_parent_map.entry(child).or_insert(parent);
} }
visible_parent_map Lrc::new(visible_parent_map)
}, },
dependency_formats: |tcx, ()| Lrc::new(crate::dependency_format::calculate(tcx)), dependency_formats: |tcx, ()| Lrc::new(crate::dependency_format::calculate(tcx)),

View file

@ -1569,8 +1569,7 @@ rustc_queries! {
desc { "calculating the missing lang items in a crate" } desc { "calculating the missing lang items in a crate" }
separate_provide_extern separate_provide_extern
} }
query visible_parent_map(_: ()) -> DefIdMap<DefId> { query visible_parent_map(_: ()) -> Lrc<DefIdMap<DefId>> {
storage(ArenaCacheSelector<'tcx>)
desc { "calculating the visible parent map" } desc { "calculating the visible parent map" }
} }
query trimmed_def_paths(_: ()) -> FxHashMap<DefId, Symbol> { query trimmed_def_paths(_: ()) -> FxHashMap<DefId, Symbol> {