@@ -1345,6 +1345,7 @@ impl AllTypes {
1345
1345
write ! (
1346
1346
f,
1347
1347
"<h1 class=\" fqn\" >\
1348
+ <span class=\" in-band\" >List of all items</span>\
1348
1349
<span class=\" out-of-band\" >\
1349
1350
<span id=\" render-detail\" >\
1350
1351
<a id=\" toggle-all-docs\" href=\" javascript:void(0)\" \
@@ -1353,7 +1354,6 @@ impl AllTypes {
1353
1354
</a>\
1354
1355
</span>
1355
1356
</span>
1356
- <span class=\" in-band\" >List of all items</span>\
1357
1357
</h1>"
1358
1358
) ;
1359
1359
print_entries ( f, & self . structs , "Structs" , "structs" ) ;
@@ -1711,36 +1711,7 @@ where
1711
1711
fn print_item ( cx : & Context < ' _ > , item : & clean:: Item , buf : & mut Buffer ) {
1712
1712
debug_assert ! ( !item. is_stripped( ) ) ;
1713
1713
// Write the breadcrumb trail header for the top
1714
- write ! ( buf, "<h1 class=\" fqn\" ><span class=\" out-of-band\" >" ) ;
1715
- render_stability_since_raw (
1716
- buf,
1717
- item. stable_since ( cx. tcx ( ) ) . as_deref ( ) ,
1718
- item. const_stable_since ( cx. tcx ( ) ) . as_deref ( ) ,
1719
- None ,
1720
- None ,
1721
- ) ;
1722
- write ! (
1723
- buf,
1724
- "<span id=\" render-detail\" >\
1725
- <a id=\" toggle-all-docs\" href=\" javascript:void(0)\" \
1726
- title=\" collapse all docs\" >\
1727
- [<span class=\" inner\" >−</span>]\
1728
- </a>\
1729
- </span>"
1730
- ) ;
1731
-
1732
- // Write `src` tag
1733
- //
1734
- // When this item is part of a `crate use` in a downstream crate, the
1735
- // [src] link in the downstream documentation will actually come back to
1736
- // this page, and this link will be auto-clicked. The `id` attribute is
1737
- // used to find the link to auto-click.
1738
- if cx. shared . include_sources && !item. is_primitive ( ) {
1739
- write_srclink ( cx, item, buf) ;
1740
- }
1741
-
1742
- write ! ( buf, "</span>" ) ; // out-of-band
1743
- write ! ( buf, "<span class=\" in-band\" >" ) ;
1714
+ write ! ( buf, "<h1 class=\" fqn\" ><span class=\" in-band\" >" ) ;
1744
1715
let name = match * item. kind {
1745
1716
clean:: ModuleItem ( ref m) => {
1746
1717
if m. is_crate {
@@ -1788,7 +1759,36 @@ fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer) {
1788
1759
}
1789
1760
write ! ( buf, "<a class=\" {}\" href=\" \" >{}</a>" , item. type_( ) , item. name. as_ref( ) . unwrap( ) ) ;
1790
1761
1791
- write ! ( buf, "</span></h1>" ) ; // in-band
1762
+ write ! ( buf, "</span>" ) ; // in-band
1763
+ write ! ( buf, "<span class=\" out-of-band\" >" ) ;
1764
+ render_stability_since_raw (
1765
+ buf,
1766
+ item. stable_since ( cx. tcx ( ) ) . as_deref ( ) ,
1767
+ item. const_stable_since ( cx. tcx ( ) ) . as_deref ( ) ,
1768
+ None ,
1769
+ None ,
1770
+ ) ;
1771
+ write ! (
1772
+ buf,
1773
+ "<span id=\" render-detail\" >\
1774
+ <a id=\" toggle-all-docs\" href=\" javascript:void(0)\" \
1775
+ title=\" collapse all docs\" >\
1776
+ [<span class=\" inner\" >−</span>]\
1777
+ </a>\
1778
+ </span>"
1779
+ ) ;
1780
+
1781
+ // Write `src` tag
1782
+ //
1783
+ // When this item is part of a `crate use` in a downstream crate, the
1784
+ // [src] link in the downstream documentation will actually come back to
1785
+ // this page, and this link will be auto-clicked. The `id` attribute is
1786
+ // used to find the link to auto-click.
1787
+ if cx. shared . include_sources && !item. is_primitive ( ) {
1788
+ write_srclink ( cx, item, buf) ;
1789
+ }
1790
+
1791
+ write ! ( buf, "</span></h1>" ) ; // out-of-band
1792
1792
1793
1793
match * item. kind {
1794
1794
clean:: ModuleItem ( ref m) => item_module ( buf, cx, item, & m. items ) ,
0 commit comments