@@ -3881,19 +3881,21 @@ fn render_impl(w: &mut fmt::Formatter, cx: &Context, i: &Impl, link: AssocItemLi
3881
3881
RenderMode :: ForDeref { mut_ : deref_mut_ } => should_render_item ( & item, deref_mut_) ,
3882
3882
} ;
3883
3883
3884
- let ( mut is_hidden, extra_class) = if item. doc_value ( ) . is_some ( ) {
3884
+ let ( is_hidden, extra_class) = if trait_. is_none ( ) ||
3885
+ item. doc_value ( ) . is_some ( ) ||
3886
+ item. inner . is_associated ( ) {
3885
3887
( false , "" )
3886
3888
} else {
3887
3889
( true , " hidden" )
3888
3890
} ;
3889
3891
match item. inner {
3890
3892
clean:: MethodItem ( clean:: Method { ref decl, .. } ) |
3891
- clean:: TyMethodItem ( clean:: TyMethod { ref decl, .. } ) => {
3893
+ clean:: TyMethodItem ( clean:: TyMethod { ref decl, .. } ) => {
3892
3894
// Only render when the method is not static or we allow static methods
3893
3895
if render_method_item {
3894
3896
let id = cx. derive_id ( format ! ( "{}.{}" , item_type, name) ) ;
3895
3897
let ns_id = cx. derive_id ( format ! ( "{}.{}" , name, item_type. name_space( ) ) ) ;
3896
- write ! ( w, "<h4 id='{}' class=\" {}\" >" , id, item_type) ?;
3898
+ write ! ( w, "<h4 id='{}' class=\" {}{} \" >" , id, item_type, extra_class ) ?;
3897
3899
write ! ( w, "{}" , spotlight_decl( decl) ?) ?;
3898
3900
write ! ( w, "<span id='{}' class='invisible'>" , ns_id) ?;
3899
3901
write ! ( w, "<table class='table-display'><tbody><tr><td><code>" ) ?;
@@ -3910,7 +3912,6 @@ fn render_impl(w: &mut fmt::Formatter, cx: &Context, i: &Impl, link: AssocItemLi
3910
3912
render_stability_since_raw ( w, item. stable_since ( ) , outer_version) ?;
3911
3913
}
3912
3914
write ! ( w, "</td></tr></tbody></table></span></h4>" ) ?;
3913
- is_hidden = false ;
3914
3915
}
3915
3916
}
3916
3917
clean:: TypedefItem ( ref tydef, _) => {
0 commit comments