@@ -1144,7 +1144,7 @@ themePicker.onblur = handleThemeButtonsBlur;
1144
1144
Some ( Implementor {
1145
1145
text : imp. inner_impl ( ) . print ( cx. cache ( ) ) . to_string ( ) ,
1146
1146
synthetic : imp. inner_impl ( ) . synthetic ,
1147
- types : collect_paths_for_type ( imp. inner_impl ( ) . for_ . clone ( ) , & cx. cache ) ,
1147
+ types : collect_paths_for_type ( imp. inner_impl ( ) . for_ . clone ( ) , cx. cache ( ) ) ,
1148
1148
} )
1149
1149
}
1150
1150
} )
@@ -2466,7 +2466,7 @@ fn item_function(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, f: &clean::
2466
2466
WhereClause { gens: & f. generics, indent: 0 , end_newline: true } . print( cx. cache( ) ) ,
2467
2467
decl = Function { decl: & f. decl, header_len, indent: 0 , asyncness: f. header. asyncness }
2468
2468
. print( cx. cache( ) ) ,
2469
- spotlight = spotlight_decl( & f. decl, & cx. cache) ,
2469
+ spotlight = spotlight_decl( & f. decl, cx. cache( ) ) ,
2470
2470
) ;
2471
2471
document ( w, cx, it, None )
2472
2472
}
@@ -3685,30 +3685,31 @@ fn should_render_item(item: &clean::Item, deref_mut_: bool, cache: &Cache) -> bo
3685
3685
}
3686
3686
}
3687
3687
3688
- fn spotlight_decl ( decl : & clean:: FnDecl , c : & Cache ) -> String {
3688
+ fn spotlight_decl ( decl : & clean:: FnDecl , cache : & Cache ) -> String {
3689
3689
let mut out = Buffer :: html ( ) ;
3690
3690
let mut trait_ = String :: new ( ) ;
3691
3691
3692
- if let Some ( did) = decl. output . def_id_full ( c ) {
3693
- if let Some ( impls) = c . impls . get ( & did) {
3692
+ if let Some ( did) = decl. output . def_id_full ( cache ) {
3693
+ if let Some ( impls) = cache . impls . get ( & did) {
3694
3694
for i in impls {
3695
3695
let impl_ = i. inner_impl ( ) ;
3696
- if impl_. trait_ . def_id_full ( c) . map_or ( false , |d| c. traits [ & d] . is_spotlight ) {
3696
+ if impl_. trait_ . def_id_full ( cache) . map_or ( false , |d| cache. traits [ & d] . is_spotlight )
3697
+ {
3697
3698
if out. is_empty ( ) {
3698
3699
out. push_str ( & format ! (
3699
3700
"<h3 class=\" notable\" >Notable traits for {}</h3>\
3700
3701
<code class=\" content\" >",
3701
- impl_. for_. print( c )
3702
+ impl_. for_. print( cache )
3702
3703
) ) ;
3703
- trait_. push_str ( & impl_. for_ . print ( c ) . to_string ( ) ) ;
3704
+ trait_. push_str ( & impl_. for_ . print ( cache ) . to_string ( ) ) ;
3704
3705
}
3705
3706
3706
3707
//use the "where" class here to make it small
3707
3708
out. push_str ( & format ! (
3708
3709
"<span class=\" where fmt-newline\" >{}</span>" ,
3709
- impl_. print( c )
3710
+ impl_. print( cache )
3710
3711
) ) ;
3711
- let t_did = impl_. trait_ . def_id_full ( c ) . unwrap ( ) ;
3712
+ let t_did = impl_. trait_ . def_id_full ( cache ) . unwrap ( ) ;
3712
3713
for it in & impl_. items {
3713
3714
if let clean:: TypedefItem ( ref tydef, _) = * it. kind {
3714
3715
out. push_str ( "<span class=\" where fmt-newline\" > " ) ;
@@ -3719,7 +3720,7 @@ fn spotlight_decl(decl: &clean::FnDecl, c: &Cache) -> String {
3719
3720
Some ( & tydef. type_ ) ,
3720
3721
AssocItemLink :: GotoSource ( t_did, & FxHashSet :: default ( ) ) ,
3721
3722
"" ,
3722
- c ,
3723
+ cache ,
3723
3724
) ;
3724
3725
out. push_str ( ";</span>" ) ;
3725
3726
}
0 commit comments