1
Fork 0

Rollup merge of #137392 - klensy:unused, r=compiler-errors

remove few unused fields

Remove unused field and convert hashmap to hashset in second commit.
This commit is contained in:
Matthias Krüger 2025-02-21 19:01:18 +01:00 committed by GitHub
commit cfc2d111ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 4 additions and 6 deletions

View file

@ -1370,7 +1370,6 @@ pub struct GlobalCtxt<'tcx> {
// Internal caches for metadata decoding. No need to track deps on this.
pub ty_rcache: Lock<FxHashMap<ty::CReaderCacheKey, Ty<'tcx>>>,
pub pred_rcache: Lock<FxHashMap<ty::CReaderCacheKey, Predicate<'tcx>>>,
/// Caches the results of trait selection. This cache is used
/// for things that do not have to do with the parameters in scope.
@ -1601,7 +1600,6 @@ impl<'tcx> TyCtxt<'tcx> {
query_system,
query_kinds,
ty_rcache: Default::default(),
pred_rcache: Default::default(),
selection_cache: Default::default(),
evaluation_cache: Default::default(),
new_solver_evaluation_cache: Default::default(),

View file

@ -179,7 +179,7 @@ pub struct ResolverGlobalCtxt {
pub confused_type_with_std_module: FxIndexMap<Span, Span>,
pub doc_link_resolutions: FxIndexMap<LocalDefId, DocLinkResMap>,
pub doc_link_traits_in_scope: FxIndexMap<LocalDefId, Vec<DefId>>,
pub all_macro_rules: FxHashMap<Symbol, Res<ast::NodeId>>,
pub all_macro_rules: FxHashSet<Symbol>,
pub stripped_cfg_items: Steal<Vec<StrippedCfgItem>>,
}