about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-12-29 17:26:36 -0800
committerGitHub <noreply@github.com>2016-12-29 17:26:36 -0800
commit1b4acae381ea52ee1fff0c08337900985e43a22b (patch)
tree9936587effd08b3fec36f91a3050ad911d6c5947 /src
parent2dc1a0ab71a9806a97aace9b1bdd9c3d1a9f7762 (diff)
parentb9038c8e9f4df04093fcca5fb4870796c3a29b75 (diff)
downloadrust-1b4acae381ea52ee1fff0c08337900985e43a22b.tar.gz
rust-1b4acae381ea52ee1fff0c08337900985e43a22b.zip
Rollup merge of #38671 - ollie27:rustdoc_stab_em_div_fix, r=frewsxcv
rustdoc: Fix broken CSS for trait items

The `stab` class shouldn't have any effect here so can be removed as currently it adds an outline.

This was accidentally caused by #38329.

[before](https://doc.rust-lang.org/nightly/std/iter/trait.ExactSizeIterator.html) [after](https://ollie27.github.io/rust_doc_test/std/iter/trait.ExactSizeIterator.html)
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/render.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs
index d66adb5ecfa..ff7133f5d0c 100644
--- a/src/librustdoc/html/render.rs
+++ b/src/librustdoc/html/render.rs
@@ -2057,10 +2057,9 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
         let item_type = m.type_();
         let id = derive_id(format!("{}.{}", item_type, name));
         let ns_id = derive_id(format!("{}.{}", name, item_type.name_space()));
-        write!(w, "<h3 id='{id}' class='method stab {stab}'>\
+        write!(w, "<h3 id='{id}' class='method'>\
                    <span id='{ns_id}' class='invisible'><code>",
                id = id,
-               stab = m.stability_class(),
                ns_id = ns_id)?;
         render_assoc_item(w, m, AssocItemLink::Anchor(Some(&id)), ItemType::Impl)?;
         write!(w, "</code>")?;