Skip to content

Commit ec1844d

Browse files
authored
Rollup merge of rust-lang#73372 - GuillaumeGomez:re-order-sidebar-sections, r=kinnison
Re-order correctly the sections in the sidebar Before that, "trait implementations" and "implementors" titles in the sidebar were before "methods" for example. Which wasn't logical considering that the two sections come after in the "content". r? @kinnison
2 parents 39345c2 + b67bdb5 commit ec1844d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/render.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4338,6 +4338,8 @@ fn sidebar_trait(buf: &mut Buffer, it: &clean::Item, t: &clean::Trait) {
43384338
}
43394339
}
43404340

4341+
sidebar.push_str(&sidebar_assoc_items(it));
4342+
43414343
sidebar.push_str("<a class=\"sidebar-title\" href=\"#implementors\">Implementors</a>");
43424344
if t.auto {
43434345
sidebar.push_str(
@@ -4346,8 +4348,6 @@ fn sidebar_trait(buf: &mut Buffer, it: &clean::Item, t: &clean::Trait) {
43464348
);
43474349
}
43484350

4349-
sidebar.push_str(&sidebar_assoc_items(it));
4350-
43514351
write!(buf, "<div class=\"block items\">{}</div>", sidebar)
43524352
}
43534353

0 commit comments

Comments
 (0)