about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-09-11 14:17:20 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-09-11 14:17:20 +0200
commit7468af8d66f6f6bb774b70d34536c86a7372a541 (patch)
tree7410dc0bcd64ad7c9cbb015df3280ff7aefda730
parent5d62ab8981b15b0e12c7583890ae27c7e8ed87fc (diff)
downloadrust-7468af8d66f6f6bb774b70d34536c86a7372a541.tar.gz
rust-7468af8d66f6f6bb774b70d34536c86a7372a541.zip
Add missing "Aliased type" title in the sidebar
-rw-r--r--src/librustdoc/html/render/sidebar.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/render/sidebar.rs b/src/librustdoc/html/render/sidebar.rs
index 6466ae825d7..76f63c6f63e 100644
--- a/src/librustdoc/html/render/sidebar.rs
+++ b/src/librustdoc/html/render/sidebar.rs
@@ -237,6 +237,7 @@ fn sidebar_type_alias<'a>(
 ) -> Vec<LinkBlock<'a>> {
     let mut items = vec![];
     if let Some(inner_type) = &t.inner_type {
+        items.push(LinkBlock::forced(Link::new("aliased-type", "Aliased type")));
         match inner_type {
             clean::TypeAliasInnerType::Enum { variants, is_non_exhaustive: _ } => {
                 let mut variants = variants