Skip to content

Commit be2544c

Browse files
Rollup merge of #37881 - ollie27:rustdoc_stab_enum_macro, r=alexcrichton
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. Fixes #36093
2 parents 5ca9fa4 + 4dbc44f commit be2544c

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
@@ -2437,7 +2437,6 @@ fn item_enum(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
24372437
write!(w, "}}")?;
24382438
}
24392439
write!(w, "</pre>")?;
2440-
render_stability_since_raw(w, it.stable_since(), None)?;
24412440

24422441
document(w, cx, it)?;
24432442
if !e.variants.is_empty() {
@@ -3053,7 +3052,6 @@ fn item_macro(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
30533052
Some("macro"),
30543053
None,
30553054
None))?;
3056-
render_stability_since_raw(w, it.stable_since(), None)?;
30573055
document(w, cx, it)
30583056
}
30593057

0 commit comments

Comments
 (0)