@@ -2243,14 +2243,7 @@ fn item_function(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
22432243
22442244fn render_implementor ( cx : & Context , implementor : & Impl , w : & mut fmt:: Formatter ,
22452245 implementor_dups : & FxHashMap < & str , ( DefId , bool ) > ) -> Result < ( ) , fmt:: Error > {
2246- write ! ( w, "<li>" ) ?;
2247- if let Some ( l) = ( Item { cx, item : & implementor. impl_item } ) . src_href ( ) {
2248- write ! ( w, "<div class='out-of-band'>" ) ?;
2249- write ! ( w, "<a class='srclink' href='{}' title='{}'>[src]</a>" ,
2250- l, "goto source code" ) ?;
2251- write ! ( w, "</div>" ) ?;
2252- }
2253- write ! ( w, "<code>" ) ?;
2246+ write ! ( w, "<li><table class='table-display'><tbody><tr><td><code>" ) ?;
22542247 // If there's already another implementor that has the same abbridged name, use the
22552248 // full path, for example in `std::iter::ExactSizeIterator`
22562249 let use_absolute = match implementor. inner_impl ( ) . for_ {
@@ -2269,7 +2262,14 @@ fn render_implementor(cx: &Context, implementor: &Impl, w: &mut fmt::Formatter,
22692262 write ! ( w, ";</span>" ) ?;
22702263 }
22712264 }
2272- writeln ! ( w, "</code></li>" ) ?;
2265+ write ! ( w, "</code><td>" ) ?;
2266+ if let Some ( l) = ( Item { cx, item : & implementor. impl_item } ) . src_href ( ) {
2267+ write ! ( w, "<div class='out-of-band'>" ) ?;
2268+ write ! ( w, "<a class='srclink' href='{}' title='{}'>[src]</a>" ,
2269+ l, "goto source code" ) ?;
2270+ write ! ( w, "</div>" ) ?;
2271+ }
2272+ writeln ! ( w, "</td></tr></tbody></table></li>" ) ?;
22732273 Ok ( ( ) )
22742274}
22752275
@@ -3314,10 +3314,11 @@ fn render_impl(w: &mut fmt::Formatter, cx: &Context, i: &Impl, link: AssocItemLi
33143314 Some ( ref t) => format ! ( "impl-{}" , small_url_encode( & format!( "{:#}" , t) ) ) ,
33153315 None => "impl" . to_string ( ) ,
33163316 } ) ;
3317- write ! ( w, "<h3 id='{}' class='impl'><span class='in-band'><code>{}</code>" ,
3317+ write ! ( w, "<h3 id='{}' class='impl'><span class='in-band'><table class='table-display'>\
3318+ <tbody><tr><td><code>{}</code>",
33183319 id, i. inner_impl( ) ) ?;
33193320 write ! ( w, "<a href='#{}' class='anchor'></a>" , id) ?;
3320- write ! ( w, "</span><span class='out-of-band'>" ) ?;
3321+ write ! ( w, "</span></td><td>< span class='out-of-band'>" ) ?;
33213322 let since = i. impl_item . stability . as_ref ( ) . map ( |s| & s. since [ ..] ) ;
33223323 if let Some ( l) = ( Item { item : & i. impl_item , cx : cx } ) . src_href ( ) {
33233324 write ! ( w, "<div class='ghost'></div>" ) ?;
@@ -3327,8 +3328,7 @@ fn render_impl(w: &mut fmt::Formatter, cx: &Context, i: &Impl, link: AssocItemLi
33273328 } else {
33283329 render_stability_since_raw ( w, since, outer_version) ?;
33293330 }
3330- write ! ( w, "</span>" ) ?;
3331- write ! ( w, "</h3>\n " ) ?;
3331+ write ! ( w, "</span></td></tr></tbody></table></h3>" ) ?;
33323332 if let Some ( ref dox) = cx. shared . maybe_collapsed_doc_value ( & i. impl_item ) {
33333333 write ! ( w, "<div class='docblock'>{}</div>" ,
33343334 Markdown ( & * dox, & i. impl_item. links( ) ) ) ?;
@@ -3357,19 +3357,20 @@ fn render_impl(w: &mut fmt::Formatter, cx: &Context, i: &Impl, link: AssocItemLi
33573357 write ! ( w, "<h4 id='{}' class=\" {}\" >" , id, item_type) ?;
33583358 write ! ( w, "{}" , spotlight_decl( decl) ?) ?;
33593359 write ! ( w, "<span id='{}' class='invisible'>" , ns_id) ?;
3360- write ! ( w, "<code>" ) ?;
3360+ write ! ( w, "<table class='table-display'><tbody><tr><td>< code>" ) ?;
33613361 render_assoc_item ( w, item, link. anchor ( & id) , ItemType :: Impl ) ?;
33623362 write ! ( w, "</code>" ) ?;
33633363 if let Some ( l) = ( Item { cx, item } ) . src_href ( ) {
3364- write ! ( w, "</span><span class='out-of-band'>" ) ?;
3364+ write ! ( w, "</span></td><td>< span class='out-of-band'>" ) ?;
33653365 write ! ( w, "<div class='ghost'></div>" ) ?;
33663366 render_stability_since_raw ( w, item. stable_since ( ) , outer_version) ?;
33673367 write ! ( w, "<a class='srclink' href='{}' title='{}'>[src]</a>" ,
33683368 l, "goto source code" ) ?;
33693369 } else {
3370+ write ! ( w, "</td><td>" ) ?;
33703371 render_stability_since_raw ( w, item. stable_since ( ) , outer_version) ?;
33713372 }
3372- write ! ( w, "</span></h4>\n " ) ?;
3373+ write ! ( w, "</td></tr></tbody></table></ span></h4>" ) ?;
33733374 }
33743375 }
33753376 clean:: TypedefItem ( ref tydef, _) => {
0 commit comments