Skip to content

Commit 3cd7f37

Browse files
authored
Rollup merge of #41754 - nikomatsakis:incr-comp-cleanup-cell, r=arielb1
kill some unused fields in TyCtxt
2 parents 9659c80 + 0f6d4ac commit 3cd7f37

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/librustc/ty/context.rs

-10
Original file line numberDiff line numberDiff line change
@@ -482,14 +482,6 @@ pub struct GlobalCtxt<'tcx> {
482482
/// about.
483483
pub used_mut_nodes: RefCell<NodeSet>,
484484

485-
/// The set of external nominal types whose implementations have been read.
486-
/// This is used for lazy resolution of methods.
487-
pub populated_external_types: RefCell<DefIdSet>,
488-
489-
/// The set of external primitive types whose implementations have been read.
490-
/// FIXME(arielb1): why is this separate from populated_external_types?
491-
pub populated_external_primitive_impls: RefCell<DefIdSet>,
492-
493485
/// Maps any item's def-id to its stability index.
494486
pub stability: RefCell<stability::Index<'tcx>>,
495487

@@ -767,8 +759,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
767759
lang_items: lang_items,
768760
used_unsafe: RefCell::new(NodeSet()),
769761
used_mut_nodes: RefCell::new(NodeSet()),
770-
populated_external_types: RefCell::new(DefIdSet()),
771-
populated_external_primitive_impls: RefCell::new(DefIdSet()),
772762
stability: RefCell::new(stability),
773763
selection_cache: traits::SelectionCache::new(),
774764
evaluation_cache: traits::EvaluationCache::new(),

0 commit comments

Comments
 (0)