Don't special case warnings
This commit is contained in:
parent
ae93bc5960
commit
e11b3ee742
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue