Skip to content

Commit 4dbc44f

Browse files
committed
rustdoc: Remove unnecessary stability versions
For some reason only on enum and macro pages, the stability version is rendered after the summary unlike all other pages. As it is already displayed at the top of the page for all items, this removes it for consistency and to prevent it from overlapping the summary text.
1 parent 5bd1e7f commit 4dbc44f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustdoc/html/render.rs

-2
Original file line numberDiff line numberDiff line change
@@ -2439,7 +2439,6 @@ fn item_enum(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
24392439
write!(w, "}}")?;
24402440
}
24412441
write!(w, "</pre>")?;
2442-
render_stability_since_raw(w, it.stable_since(), None)?;
24432442

24442443
document(w, cx, it)?;
24452444
if !e.variants.is_empty() {
@@ -3055,7 +3054,6 @@ fn item_macro(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
30553054
Some("macro"),
30563055
None,
30573056
None))?;
3058-
render_stability_since_raw(w, it.stable_since(), None)?;
30593057
document(w, cx, it)
30603058
}
30613059

0 commit comments

Comments
 (0)