diff options
| author | Michael Howell <michael@notriddle.com> | 2021-06-24 12:53:35 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2021-06-24 16:37:03 -0700 |
| commit | 14ca89446c076bcf484d3d05bd991a4b7985a409 (patch) | |
| tree | 931b2be84eb410e3cb1816ce5f1bd26a2babf9a9 /src/librustdoc/formats/cache.rs | |
| parent | e629381653bb3579f0cea0b256e391edef5e8dbb (diff) | |
| download | rust-14ca89446c076bcf484d3d05bd991a4b7985a409.tar.gz rust-14ca89446c076bcf484d3d05bd991a4b7985a409.zip | |
chore(rustdoc): remove unused members of RenderType
Commit e629381653bb3579f0cea0b256e391edef5e8dbb removes the only place these members variables are actually read.
Diffstat (limited to 'src/librustdoc/formats/cache.rs')
| -rw-r--r-- | src/librustdoc/formats/cache.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/librustdoc/formats/cache.rs b/src/librustdoc/formats/cache.rs index 811f6829201..c9682bd84f7 100644 --- a/src/librustdoc/formats/cache.rs +++ b/src/librustdoc/formats/cache.rs @@ -128,7 +128,6 @@ crate struct Cache { /// This struct is used to wrap the `cache` and `tcx` in order to run `DocFolder`. struct CacheBuilder<'a, 'tcx> { cache: &'a mut Cache, - empty_cache: Cache, tcx: TyCtxt<'tcx>, } @@ -173,7 +172,7 @@ impl Cache { self.primitive_locations.insert(prim, def_id); } - krate = CacheBuilder { tcx, cache: self, empty_cache: Cache::default() }.fold_crate(krate); + krate = CacheBuilder { tcx, cache: self }.fold_crate(krate); for (trait_did, dids, impl_) in self.orphan_trait_impls.drain(..) { if self.traits.contains_key(&trait_did) { @@ -302,7 +301,7 @@ impl<'a, 'tcx> DocFolder for CacheBuilder<'a, 'tcx> { desc, parent, parent_idx: None, - search_type: get_index_search_type(&item, &self.empty_cache, self.tcx), + search_type: get_index_search_type(&item, self.tcx), aliases: item.attrs.get_doc_aliases(), }); } |
