Don't special case warnings

This commit is contained in:
Joshua Nelson 2020-08-25 10:42:24 -04:00
parent ae93bc5960
commit e11b3ee742

View file

@ -257,10 +257,7 @@ where
.filter_map(|lint| { .filter_map(|lint| {
// Permit feature-gated lints to avoid feature errors when trying to // Permit feature-gated lints to avoid feature errors when trying to
// allow all lints. // allow all lints.
if lint.name == warnings_lint_name if lint.feature_gate.is_some() || allowed_lints.iter().any(|l| lint.name == l) {
|| lint.feature_gate.is_some()
|| allowed_lints.iter().any(|l| lint.name == l)
{
None None
} else { } else {
filter_call(lint) filter_call(lint)