diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index 0efa014b1274..4f3acfb8e82f 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -490,7 +490,6 @@ fn settings(root_path: &str, suffix: &str, themes: &[StylePath]) -> Result");
write!(w, "");
@@ -1571,21 +1573,23 @@ fn render_impl(
}
}
- if let Some(ref dox) = cx.shared.maybe_collapsed_doc_value(&i.impl_item) {
- let mut ids = cx.id_map.borrow_mut();
- write!(
- w,
- "{}
",
- Markdown(
- &*dox,
- &i.impl_item.links(cx),
- &mut ids,
- cx.shared.codes,
- cx.shared.edition(),
- &cx.shared.playground
- )
- .into_string()
- );
+ if !on_trait_page {
+ if let Some(ref dox) = cx.shared.maybe_collapsed_doc_value(&i.impl_item) {
+ let mut ids = cx.id_map.borrow_mut();
+ write!(
+ w,
+ "{}
",
+ Markdown(
+ &*dox,
+ &i.impl_item.links(cx),
+ &mut ids,
+ cx.shared.codes,
+ cx.shared.edition(),
+ &cx.shared.playground
+ )
+ .into_string()
+ );
+ }
}
}
if !default_impl_items.is_empty() || !impl_items.is_empty() {
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index e43a231d7570..98128878999e 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -778,7 +778,6 @@ function hideThemeButtonState() {
}
var hideMethodDocs = getSettingValue("auto-hide-method-docs") === "true";
- var hideImplementors = getSettingValue("auto-collapse-implementors") !== "false";
var hideImplementations = getSettingValue("auto-hide-trait-implementations") === "true";
var hideLargeItemContents = getSettingValue("auto-hide-large-items") !== "false";
@@ -796,10 +795,6 @@ function hideThemeButtonState() {
setImplementorsTogglesOpen("blanket-implementations-list", false);
}
- if (!hideImplementors) {
- setImplementorsTogglesOpen("implementors-list", true);
- }
-
onEachLazy(document.getElementsByClassName("rustdoc-toggle"), function (e) {
if (!hideLargeItemContents && hasClass(e, "type-contents-toggle")) {
e.open = true;
diff --git a/src/test/rustdoc/issue-19055.rs b/src/test/rustdoc/issue-19055.rs
deleted file mode 100644
index dbaf744dc471..000000000000
--- a/src/test/rustdoc/issue-19055.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-// @has issue_19055/trait.Any.html
-pub trait Any {}
-
-impl<'any> Any + 'any {
- // @has - '//*[@id="method.is"]' 'fn is'
- pub fn is(&self) -> bool { loop {} }
-
- // @has - '//*[@id="method.downcast_ref"]' 'fn downcast_ref'
- pub fn downcast_ref(&self) -> Option<&T> { loop {} }
-
- // @has - '//*[@id="method.downcast_mut"]' 'fn downcast_mut'
- pub fn downcast_mut(&mut self) -> Option<&mut T> { loop {} }
-}
-
-pub trait Foo {
- fn foo(&self) {}
-}
-
-// @has - '//*[@id="method.foo"]' 'fn foo'
-impl Foo for Any {}