@@ -2113,14 +2113,6 @@ fn render_impl(w: &mut fmt::Formatter, i: &Impl) -> fmt::Result {
21132113 fn doctraititem ( w : & mut fmt:: Formatter , item : & clean:: Item , dox : bool )
21142114 -> fmt:: Result {
21152115 match item. inner {
2116- clean:: MethodItem ( ..) => {
2117- try!( write ! ( w, "<h4 id='method.{}' class='{}'>{}<code>" ,
2118- * item. name. as_ref( ) . unwrap( ) ,
2119- shortty( item) ,
2120- ConciseStability ( & item. stability) ) ) ;
2121- try!( render_method ( w, item) ) ;
2122- try!( write ! ( w, "</code></h4>\n " ) ) ;
2123- }
21242116 clean:: TypedefItem ( ref tydef) => {
21252117 let name = item. name . as_ref ( ) . unwrap ( ) ;
21262118 try!( write ! ( w, "<h4 id='assoc_type.{}' class='{}'>{}<code>" ,
@@ -2130,7 +2122,14 @@ fn render_impl(w: &mut fmt::Formatter, i: &Impl) -> fmt::Result {
21302122 try!( write ! ( w, "type {} = {}" , name, tydef. type_) ) ;
21312123 try!( write ! ( w, "</code></h4>\n " ) ) ;
21322124 }
2133- _ => panic ! ( "unknown trait item with name {}" , item. name)
2125+ _ => {
2126+ try!( write ! ( w, "<h4 id='method.{}' class='{}'>{}<code>" ,
2127+ * item. name. as_ref( ) . unwrap( ) ,
2128+ shortty( item) ,
2129+ ConciseStability ( & item. stability) ) ) ;
2130+ try!( render_method ( w, item) ) ;
2131+ try!( write ! ( w, "</code></h4>\n " ) ) ;
2132+ }
21342133 }
21352134 match item. doc_value ( ) {
21362135 Some ( s) if dox => {
0 commit comments