diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-08-25 10:42:24 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-08-25 10:43:40 -0400 |
| commit | e11b3ee742ff5e5163ae6123a37f9fa757804842 (patch) | |
| tree | c84ff1452cb2d95a821b24a0c5b01faa0bbaf17d | |
| parent | ae93bc59608ddfe4d507d630e4526cd3135ca613 (diff) | |
| download | rust-e11b3ee742ff5e5163ae6123a37f9fa757804842.tar.gz rust-e11b3ee742ff5e5163ae6123a37f9fa757804842.zip | |
Don't special case `warnings`
| -rw-r--r-- | src/librustdoc/core.rs | 5 |
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) |
