diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index 470e9d5ae768d..e4aba8963c762 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -1062,12 +1062,13 @@ themePicker.onblur = handleThemeButtonsBlur;
let content = format!(
"
\
List of all crates\
-
",
+ \
+ ",
krates
.iter()
.map(|s| {
format!(
- "{}",
+ "{}",
ensure_trailing_slash(s),
s
)
diff --git a/src/librustdoc/html/static/themes/ayu.css b/src/librustdoc/html/static/themes/ayu.css
index f910bfffc22f4..b4571018270ac 100644
--- a/src/librustdoc/html/static/themes/ayu.css
+++ b/src/librustdoc/html/static/themes/ayu.css
@@ -178,6 +178,9 @@ pre {
.content span.externcrate, .content span.mod, .content a.mod {
color: #acccf9;
}
+.content ul.crate a.crate {
+ font: 16px/1.6 "Fira Sans";
+}
.content span.struct, .content a.struct {
color: #ffa0a5;
}
diff --git a/src/test/rustdoc/index-page.rs b/src/test/rustdoc/index-page.rs
index f0476f083b8a1..be668a1276a01 100644
--- a/src/test/rustdoc/index-page.rs
+++ b/src/test/rustdoc/index-page.rs
@@ -6,6 +6,6 @@
// @has foo/../index.html
// @has - '//span[@class="in-band"]' 'List of all crates'
-// @has - '//ul[@class="mod"]//a[@href="foo/index.html"]' 'foo'
-// @has - '//ul[@class="mod"]//a[@href="all_item_types/index.html"]' 'all_item_types'
+// @has - '//ul[@class="crate mod"]//a[@href="foo/index.html"]' 'foo'
+// @has - '//ul[@class="crate mod"]//a[@href="all_item_types/index.html"]' 'all_item_types'
pub struct Foo;