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| {
|
.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)
|
||||||
|
|
Loading…
Reference in a new issue