about summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorStefan Schindler <dns2utf8@estada.ch>2021-06-23 20:02:00 +0200
committerStefan Schindler <dns2utf8@estada.ch>2021-06-28 17:41:51 +0200
commita48d9d1c493f98ff1c484578bf1b3facb7f39cf1 (patch)
tree20ac00af3a1f33eae30f1774d1741e6129b50f11 /src/librustdoc/html/render
parent17ea490310ba7c836c93fe1b7002555b3bea5eb1 (diff)
downloadrust-a48d9d1c493f98ff1c484578bf1b3facb7f39cf1.tar.gz
rust-a48d9d1c493f98ff1c484578bf1b3facb7f39cf1.zip
Move stab_tags to symbol in tables
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/print_item.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs
index 5fd0607356d..ea141c51048 100644
--- a/src/librustdoc/html/render/print_item.rs
+++ b/src/librustdoc/html/render/print_item.rs
@@ -363,10 +363,11 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
                 write!(
                     w,
                     "<div class=\"item-left {stab}{add}module-item\">\
-                         <a class=\"{class}\" href=\"{href}\" \
-                             title=\"{title}\">{name}</a>{unsafety_flag}\
+                         <a class=\"{class}\" href=\"{href}\" title=\"{title}\">{name}</a>\
+                             {unsafety_flag}\
+                             {stab_tags}\
                      </div>\
-                     <div class=\"item-right docblock-short\">{stab_tags}{docs}</div>",
+                     <div class=\"item-right docblock-short\">{docs}</div>",
                     name = *myitem.name.as_ref().unwrap(),
                     stab_tags = extra_info_tags(myitem, item, cx.tcx()),
                     docs = MarkdownSummaryLine(&doc_value, &myitem.links(cx)).into_string(),