@@ -282,11 +282,6 @@ impl Impl {
282282/// rendering threads.
283283#[ derive( Default ) ]
284284pub struct Cache {
285- /// Mapping of typaram ids to the name of the type parameter. This is used
286- /// when pretty-printing a type (so pretty-printing doesn't have to
287- /// painfully maintain a context like this)
288- pub param_names : FxHashMap < DefId , String > ,
289-
290285 /// Maps a type ID to all known implementations for that type. This is only
291286 /// recognized for intra-crate `ResolvedPath` types, and is used to print
292287 /// out extra documentation on the page of an enum/struct.
@@ -382,7 +377,6 @@ pub struct Cache {
382377pub struct RenderInfo {
383378 pub inlined : FxHashSet < DefId > ,
384379 pub external_paths : crate :: core:: ExternalPaths ,
385- pub external_param_names : FxHashMap < DefId , String > ,
386380 pub exact_paths : FxHashMap < DefId , Vec < String > > ,
387381 pub access_levels : AccessLevels < DefId > ,
388382 pub deref_trait_did : Option < DefId > ,
@@ -617,7 +611,6 @@ pub fn run(mut krate: clean::Crate,
617611 let RenderInfo {
618612 inlined : _,
619613 external_paths,
620- external_param_names,
621614 exact_paths,
622615 access_levels,
623616 deref_trait_did,
@@ -651,7 +644,6 @@ pub fn run(mut krate: clean::Crate,
651644 deref_mut_trait_did,
652645 owned_box_did,
653646 masked_crates : mem:: take ( & mut krate. masked_crates ) ,
654- param_names : external_param_names,
655647 aliases : Default :: default ( ) ,
656648 } ;
657649
@@ -1419,12 +1411,6 @@ impl DocFolder for Cache {
14191411 }
14201412 }
14211413
1422- // Register any generics to their corresponding string. This is used
1423- // when pretty-printing types.
1424- if let Some ( generics) = item. inner . generics ( ) {
1425- self . generics ( generics) ;
1426- }
1427-
14281414 // Propagate a trait method's documentation to all implementors of the
14291415 // trait.
14301416 if let clean:: TraitItem ( ref t) = item. inner {
@@ -1657,18 +1643,6 @@ impl DocFolder for Cache {
16571643}
16581644
16591645impl Cache {
1660- fn generics ( & mut self , generics : & clean:: Generics ) {
1661- for param in & generics. params {
1662- match param. kind {
1663- clean:: GenericParamDefKind :: Lifetime => { }
1664- clean:: GenericParamDefKind :: Type { did, .. } |
1665- clean:: GenericParamDefKind :: Const { did, .. } => {
1666- self . param_names . insert ( did, param. name . clone ( ) ) ;
1667- }
1668- }
1669- }
1670- }
1671-
16721646 fn add_aliases ( & mut self , item : & clean:: Item ) {
16731647 if item. def_id . index == CRATE_DEF_INDEX {
16741648 return
0 commit comments