Skip to content

Commit e11b3ee

Browse files
committed
Don't special case warnings
1 parent ae93bc5 commit e11b3ee

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustdoc/core.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,7 @@ where
257257
.filter_map(|lint| {
258258
// Permit feature-gated lints to avoid feature errors when trying to
259259
// allow all lints.
260-
if lint.name == warnings_lint_name
261-
|| lint.feature_gate.is_some()
262-
|| allowed_lints.iter().any(|l| lint.name == l)
263-
{
260+
if lint.feature_gate.is_some() || allowed_lints.iter().any(|l| lint.name == l) {
264261
None
265262
} else {
266263
filter_call(lint)

0 commit comments

Comments
 (0)