"end register lints",
false,
update_mode == UpdateMode::Change,
- || gen_register_lint_list(usable_lints.iter().chain(internal_lints.iter())),
+ || gen_register_lint_list(internal_lints.iter(), usable_lints.iter()),
)
.changed;
|| {
// clippy::all should only include the following lint groups:
let all_group_lints = usable_lints.iter().filter(|l| {
- l.group == "correctness" || l.group == "style" || l.group == "complexity" || l.group == "perf"
+ matches!(
+ &*l.group,
+ "correctness" | "suspicious" | "style" | "complexity" | "perf"
+ )
});
gen_lint_group_list(all_group_lints)