From bcef5e70774c792b17b5092859392f131f78bd3a Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Sat, 20 Feb 2021 17:26:05 -0700 Subject: [PATCH] Revert changes to all.html This code wasn't actually working, and trying to SEO optimize that page is pointless anyway. --- src/librustdoc/html/render/mod.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index d7d69bc29f81..87b5ae49d7fb 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -534,17 +534,12 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> { if !root_path.ends_with('/') { root_path.push('/'); } - let description = krate - .module - .as_ref() - .and_then(|item| Some(plain_text_summary(item.doc_value()?.as_str()))) - .unwrap_or_else(|| String::from("List of all items in this crate")); let mut page = layout::Page { title: "List of all items in this crate", css_class: "mod", root_path: "../", static_root_path: self.shared.static_root_path.as_deref(), - description: description.as_str(), + description: "List of all items in this crate", keywords: BASIC_KEYWORDS, resource_suffix: &self.shared.resource_suffix, extra_scripts: &[],