Skip to content

Commit a72ce7d

Browse files
committed
Auto merge of #14024 - Muscraft:add-missing-lint-to-lints, r=weihanglo
fix(lints): Add unknown_lints to lints list When working on the linting system, I noticed that `UNKNOWN_LINTS` was not in the list of all lints, when it probably should be.
2 parents 10b7d38 + 0cfcefd commit a72ce7d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/cargo/util/lints.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ use std::path::Path;
1313
use toml_edit::ImDocument;
1414

1515
const LINT_GROUPS: &[LintGroup] = &[TEST_DUMMY_UNSTABLE];
16-
const LINTS: &[Lint] = &[IM_A_TEAPOT, IMPLICIT_FEATURES, UNUSED_OPTIONAL_DEPENDENCY];
16+
const LINTS: &[Lint] = &[
17+
IM_A_TEAPOT,
18+
IMPLICIT_FEATURES,
19+
UNKNOWN_LINTS,
20+
UNUSED_OPTIONAL_DEPENDENCY,
21+
];
1722

1823
pub fn analyze_cargo_lints_table(
1924
pkg: &Package,

0 commit comments

Comments
 (0)