diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index 5bd9389a400..c5d6771c2fd 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -421,11 +421,10 @@ fn document<'a, 'cx: 'a>(
display_fn(move |f| {
document_item_info(cx, item, parent).render_into(f).unwrap();
if parent.is_none() {
- write!(f, "{}", document_full_collapsible(item, cx, heading_offset))?;
+ write!(f, "{}", document_full_collapsible(item, cx, heading_offset))
} else {
- write!(f, "{}", document_full(item, cx, heading_offset))?;
+ write!(f, "{}", document_full(item, cx, heading_offset))
}
- Ok(())
})
}
diff --git a/src/librustdoc/html/templates/item_info.html b/src/librustdoc/html/templates/item_info.html
index d2ea9bdae9c..9e65ae95e15 100644
--- a/src/librustdoc/html/templates/item_info.html
+++ b/src/librustdoc/html/templates/item_info.html
@@ -1,5 +1,5 @@
{% if !items.is_empty() %}
- {# #}
+
{% for item in items %}
{{item|safe}} {# #}
{% endfor %}
diff --git a/src/librustdoc/html/templates/item_union.html b/src/librustdoc/html/templates/item_union.html
index a01457971c1..f6d2fa34890 100644
--- a/src/librustdoc/html/templates/item_union.html
+++ b/src/librustdoc/html/templates/item_union.html
@@ -4,14 +4,15 @@
{{ self.document() | safe }}
{% if self.fields_iter().peek().is_some() %}
-