Skip to content

Commit

Permalink
Auto merge of #14024 - Muscraft:add-missing-lint-to-lints, r=weihanglo
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Jun 7, 2024
2 parents 10b7d38 + 0cfcefd commit a72ce7d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cargo/util/lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ use std::path::Path;
use toml_edit::ImDocument;

const LINT_GROUPS: &[LintGroup] = &[TEST_DUMMY_UNSTABLE];
const LINTS: &[Lint] = &[IM_A_TEAPOT, IMPLICIT_FEATURES, UNUSED_OPTIONAL_DEPENDENCY];
const LINTS: &[Lint] = &[
IM_A_TEAPOT,
IMPLICIT_FEATURES,
UNKNOWN_LINTS,
UNUSED_OPTIONAL_DEPENDENCY,
];

pub fn analyze_cargo_lints_table(
pkg: &Package,
Expand Down

0 comments on commit a72ce7d

Please sign in to comment.