diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-11-20 15:00:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-20 15:00:05 +0100 |
| commit | be2544c66bf87755b4923f52a40ed285fc63ba0f (patch) | |
| tree | b5e49bd8fe0c1e8450210c8bd7129529a93b7ea1 | |
| parent | 5ca9fa438b1edb543668ae67e2ed137dc22fdb1d (diff) | |
| parent | 4dbc44fea1a5d5fc77ef716db4e086623542072c (diff) | |
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
| -rw-r--r-- | src/librustdoc/html/render.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index 44dadc4367b..31fbcb5059f 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -2437,7 +2437,6 @@ fn item_enum(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item, write!(w, "}}")?; } write!(w, "</pre>")?; - render_stability_since_raw(w, it.stable_since(), None)?; document(w, cx, it)?; if !e.variants.is_empty() { @@ -3053,7 +3052,6 @@ fn item_macro(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item, Some("macro"), None, None))?; - render_stability_since_raw(w, it.stable_since(), None)?; document(w, cx, it) } |
