about summary refs log tree commit diff
path: root/src/librustdoc/html/render/mod.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2025-09-25 14:13:26 -0700
committerMichael Howell <michael@notriddle.com>2025-09-25 14:19:22 -0700
commit8daad494b11ae5d0e5282be485625687bcf27e37 (patch)
tree7487205710adcd2086d1e1f2f8b0294cd245699b /src/librustdoc/html/render/mod.rs
parenteabf390b4ceeb34db9f37e97f435134abbcdea92 (diff)
downloadrust-8daad494b11ae5d0e5282be485625687bcf27e37.tar.gz
rust-8daad494b11ae5d0e5282be485625687bcf27e37.zip
rustdoc: put the toolbar on the all item index
Diffstat (limited to 'src/librustdoc/html/render/mod.rs')
-rw-r--r--src/librustdoc/html/render/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index 6d684449b6d..bb494de19d9 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -601,7 +601,12 @@ impl AllTypes {
         }
 
         fmt::from_fn(|f| {
-            f.write_str("<h1>List of all items</h1>")?;
+            f.write_str(
+                "<div class=\"main-heading\">\
+                    <h1>List of all items</h1>\
+                    <rustdoc-toolbar></rustdoc-toolbar>\
+                </div>",
+            )?;
             // Note: print_entries does not escape the title, because we know the current set of titles
             // doesn't require escaping.
             print_entries(&self.structs, ItemSection::Structs).fmt(f)?;