@@ -3881,19 +3881,21 @@ fn render_impl(w: &mut fmt::Formatter, cx: &Context, i: &Impl, link: AssocItemLi
38813881 RenderMode :: ForDeref { mut_ : deref_mut_ } => should_render_item ( & item, deref_mut_) ,
38823882 } ;
38833883
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 ( ) {
38853887 ( false , "" )
38863888 } else {
38873889 ( true , " hidden" )
38883890 } ;
38893891 match item. inner {
38903892 clean:: MethodItem ( clean:: Method { ref decl, .. } ) |
3891- clean:: TyMethodItem ( clean:: TyMethod { ref decl, .. } ) => {
3893+ clean:: TyMethodItem ( clean:: TyMethod { ref decl, .. } ) => {
38923894 // Only render when the method is not static or we allow static methods
38933895 if render_method_item {
38943896 let id = cx. derive_id ( format ! ( "{}.{}" , item_type, name) ) ;
38953897 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 ) ?;
38973899 write ! ( w, "{}" , spotlight_decl( decl) ?) ?;
38983900 write ! ( w, "<span id='{}' class='invisible'>" , ns_id) ?;
38993901 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
39103912 render_stability_since_raw ( w, item. stable_since ( ) , outer_version) ?;
39113913 }
39123914 write ! ( w, "</td></tr></tbody></table></span></h4>" ) ?;
3913- is_hidden = false ;
39143915 }
39153916 }
39163917 clean:: TypedefItem ( ref tydef, _) => {
0 commit comments