about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-12-14 19:06:41 -0500
committerJoshua Nelson <jyn514@gmail.com>2020-12-14 21:49:13 -0500
commit89fc5034f4f8bca86cbf2c29c8c00366a7b4a33c (patch)
treef4b4ff342811e6d96ac52cffff506de944e17573
parentcbab347e68d31cba63105f966617a86758134a8f (diff)
downloadrust-89fc5034f4f8bca86cbf2c29c8c00366a7b4a33c.tar.gz
rust-89fc5034f4f8bca86cbf2c29c8c00366a7b4a33c.zip
Remove unnecessary unwrap_or
This was always questionable, and removing it doesn't fail any tests, so
I think this was not affecting the behavior. It dates all the way back
to the very first commit of rustdoc: 268f3f0ff5d80544ca21d565354eae6d3e29fb91
-rw-r--r--src/librustdoc/clean/mod.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index 1a63a5092ca..1a004231a10 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -254,7 +254,6 @@ impl Clean<Item> for doctree::Module<'_> {
             cx,
         );
         Item {
-            name: Some(what_rustc_thinks.name.unwrap_or_default()),
             attrs,
             source: span.clean(cx),
             ..what_rustc_thinks