about summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-06-13 15:38:44 -0700
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-06-13 17:57:16 -0700
commit74e8e7bb600212e7fef9782fde5ad9c13e1d65a0 (patch)
tree26435ec289252d6ce43b0cf3f2280f53064da32b /src/librustdoc/html/render
parent0a8629bff642c3c3b84bb644c0099194f063b627 (diff)
downloadrust-74e8e7bb600212e7fef9782fde5ad9c13e1d65a0.tar.gz
rust-74e8e7bb600212e7fef9782fde5ad9c13e1d65a0.zip
Remove must_use from ALLOWED_ATTRIBUTES
This is a fairly common attribute on methods, but is not something you
need to know when reading the method docs - the purpose of the attribute
is for the compiler to tell you about it if you forget to use a value.

Removing reclaims some valuable space in the summary of methods.
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/mod.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index 2e940a31c2a..cd39393d03b 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -965,14 +965,8 @@ fn render_assoc_item(
     }
 }
 
-const ALLOWED_ATTRIBUTES: &[Symbol] = &[
-    sym::export_name,
-    sym::link_section,
-    sym::must_use,
-    sym::no_mangle,
-    sym::repr,
-    sym::non_exhaustive,
-];
+const ALLOWED_ATTRIBUTES: &[Symbol] =
+    &[sym::export_name, sym::link_section, sym::no_mangle, sym::repr, sym::non_exhaustive];
 
 fn attributes(it: &clean::Item) -> Vec<String> {
     it.attrs