From 967a6b02411f2eecfcc521d4b0129cc6b03d504a Mon Sep 17 00:00:00 2001 From: QuietMisdreavus Date: Thu, 27 Sep 2018 09:12:13 -0500 Subject: [PATCH] show "all items" link even if crate doesn't have a version --- src/librustdoc/html/render.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index 8adc45ea965..1c61e73fae0 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -4095,11 +4095,12 @@ impl<'a> fmt::Display for Sidebar<'a> { write!(fmt, "
\

Version {}

\ -
-

See all {}'s items

", - version, - it.name.as_ref().unwrap())?; + ", + version)?; } + + write!(fmt, "

See all {}'s items

", + it.name.as_ref().expect("crates always have a name"))?; } write!(fmt, "
")?;