diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-06-19 10:14:09 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-19 10:14:09 +0900 |
| commit | 41bf471950dcf7cee52cf73a9f1ee979b7c39971 (patch) | |
| tree | 4043ee23d33bf52ceb6ee02846076634211b5901 /src/librustdoc/html/render | |
| parent | 0c7b74fcef4fcb4d64d1b6d96c3afd8d39a91e25 (diff) | |
| parent | 68f9172fc136ab0b5cbc082eb7a51a725c108a7d (diff) | |
| download | rust-41bf471950dcf7cee52cf73a9f1ee979b7c39971.tar.gz rust-41bf471950dcf7cee52cf73a9f1ee979b7c39971.zip | |
Rollup merge of #86370 - matteo-briani:fix-rustdoc-stabilized-versions-layout, r=GuillaumeGomez
Fix rustdoc stabilized versions layout Fixes #86342 r? `@GuillaumeGomez`
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/print_item.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index 8fd53538912..48cbd94ccab 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -981,7 +981,9 @@ fn item_enum(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, e: &clean::Enum } w.write_str(")"); } - w.write_str("</code></div>"); + w.write_str("</code>"); + render_stability_since(w, variant, it, cx.tcx()); + w.write_str("</div>"); document(w, cx, variant, Some(it)); document_non_exhaustive(w, variant); @@ -1023,7 +1025,6 @@ fn item_enum(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, e: &clean::Enum w.write_str("</div></div>"); toggle_close(w); } - render_stability_since(w, variant, it, cx.tcx()); } } let def_id = it.def_id.expect_real(); |
