about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-08-25 10:42:24 -0400
committerJoshua Nelson <jyn514@gmail.com>2020-08-25 10:43:40 -0400
commite11b3ee742ff5e5163ae6123a37f9fa757804842 (patch)
treec84ff1452cb2d95a821b24a0c5b01faa0bbaf17d
parentae93bc59608ddfe4d507d630e4526cd3135ca613 (diff)
downloadrust-e11b3ee742ff5e5163ae6123a37f9fa757804842.tar.gz
rust-e11b3ee742ff5e5163ae6123a37f9fa757804842.zip
Don't special case `warnings`
-rw-r--r--src/librustdoc/core.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs
index 6952e6ed40e..89b217dc7d4 100644
--- a/src/librustdoc/core.rs
+++ b/src/librustdoc/core.rs
@@ -257,10 +257,7 @@ where
         .filter_map(|lint| {
             // Permit feature-gated lints to avoid feature errors when trying to
             // allow all lints.
-            if lint.name == warnings_lint_name
-                || lint.feature_gate.is_some()
-                || allowed_lints.iter().any(|l| lint.name == l)
-            {
+            if lint.feature_gate.is_some() || allowed_lints.iter().any(|l| lint.name == l) {
                 None
             } else {
                 filter_call(lint)