1
Fork 0

Remove unnecessary Cache.*_did fields

They can be obtained by accessing the `TyCtxt` where they are needed.
This commit is contained in:
Noah Lev 2021-08-21 20:58:23 -07:00
parent 497ee321af
commit 44e6f2e90f
3 changed files with 19 additions and 29 deletions

View file

@ -98,9 +98,6 @@ crate struct Cache {
stripped_mod: bool,
crate search_index: Vec<IndexItem>,
crate deref_trait_did: Option<DefId>,
crate deref_mut_trait_did: Option<DefId>,
crate owned_box_did: Option<DefId>,
// In rare case where a structure is defined in one module but implemented
// in another, if the implementing module is parsed before defining module,