Skip to content

Commit 1b4acae

Browse files
authored
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)
2 parents 2dc1a0a + b9038c8 commit 1b4acae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/html/render.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,10 +2057,9 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
20572057
let item_type = m.type_();
20582058
let id = derive_id(format!("{}.{}", item_type, name));
20592059
let ns_id = derive_id(format!("{}.{}", name, item_type.name_space()));
2060-
write!(w, "<h3 id='{id}' class='method stab {stab}'>\
2060+
write!(w, "<h3 id='{id}' class='method'>\
20612061
<span id='{ns_id}' class='invisible'><code>",
20622062
id = id,
2063-
stab = m.stability_class(),
20642063
ns_id = ns_id)?;
20652064
render_assoc_item(w, m, AssocItemLink::Anchor(Some(&id)), ItemType::Impl)?;
20662065
write!(w, "</code>")?;

0 commit comments

Comments
 (0)