@@ -282,11 +282,6 @@ impl Impl {
282
282
/// rendering threads.
283
283
#[ derive( Default ) ]
284
284
pub 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
-
290
285
/// Maps a type ID to all known implementations for that type. This is only
291
286
/// recognized for intra-crate `ResolvedPath` types, and is used to print
292
287
/// out extra documentation on the page of an enum/struct.
@@ -382,7 +377,6 @@ pub struct Cache {
382
377
pub struct RenderInfo {
383
378
pub inlined : FxHashSet < DefId > ,
384
379
pub external_paths : crate :: core:: ExternalPaths ,
385
- pub external_param_names : FxHashMap < DefId , String > ,
386
380
pub exact_paths : FxHashMap < DefId , Vec < String > > ,
387
381
pub access_levels : AccessLevels < DefId > ,
388
382
pub deref_trait_did : Option < DefId > ,
@@ -617,7 +611,6 @@ pub fn run(mut krate: clean::Crate,
617
611
let RenderInfo {
618
612
inlined : _,
619
613
external_paths,
620
- external_param_names,
621
614
exact_paths,
622
615
access_levels,
623
616
deref_trait_did,
@@ -651,7 +644,6 @@ pub fn run(mut krate: clean::Crate,
651
644
deref_mut_trait_did,
652
645
owned_box_did,
653
646
masked_crates : mem:: take ( & mut krate. masked_crates ) ,
654
- param_names : external_param_names,
655
647
aliases : Default :: default ( ) ,
656
648
} ;
657
649
@@ -1419,12 +1411,6 @@ impl DocFolder for Cache {
1419
1411
}
1420
1412
}
1421
1413
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
-
1428
1414
// Propagate a trait method's documentation to all implementors of the
1429
1415
// trait.
1430
1416
if let clean:: TraitItem ( ref t) = item. inner {
@@ -1657,18 +1643,6 @@ impl DocFolder for Cache {
1657
1643
}
1658
1644
1659
1645
impl 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
-
1672
1646
fn add_aliases ( & mut self , item : & clean:: Item ) {
1673
1647
if item. def_id . index == CRATE_DEF_INDEX {
1674
1648
return
0 commit comments