diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index f6d6b34f8bef9..492f5cd85512c 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -1305,7 +1305,10 @@ fn render_impl( if let Some(use_absolute) = use_absolute { write!( w, - "

", + "
\ + \ +

\ + ", id, aliases ); close_tags.insert_str(0, "

"); @@ -1331,7 +1334,10 @@ fn render_impl( } else { write!( w, - "

{}", + "
\ + \ +

\ + {}", id, aliases, i.inner_impl().print(false, cx) @@ -1347,8 +1353,7 @@ fn render_impl( outer_const_version, ); write_srclink(cx, &i.impl_item, w); - w.write_str("

"); - w.write_str("
"); + w.write_str("

"); if trait_.is_some() { if let Some(portability) = portability(&i.impl_item, Some(parent)) {