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, "
")?;