diff options
| author | Oliver Middleton <olliemail27@gmail.com> | 2016-11-19 17:22:33 +0000 |
|---|---|---|
| committer | Oliver Middleton <olliemail27@gmail.com> | 2016-11-19 17:22:33 +0000 |
| commit | 4dbc44fea1a5d5fc77ef716db4e086623542072c (patch) | |
| tree | 002a552440a16133f33315ffa43e6a98b7ff3e7a | |
| parent | 5bd1e7f59ffe6126db57ea94b90690d1ac39b932 (diff) | |
| download | rust-4dbc44fea1a5d5fc77ef716db4e086623542072c.tar.gz rust-4dbc44fea1a5d5fc77ef716db4e086623542072c.zip | |
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.
| -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 2761ab76607..fd0fb9d05e7 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -2439,7 +2439,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() { @@ -3055,7 +3054,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) } |
