Skip to content

Commit 50a2f97

Browse files
committed
Adapt gen_lint_group_list test to also generate internal lints
1 parent 0702698 commit 50a2f97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_dev/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,10 +529,11 @@ fn test_gen_lint_group_list() {
529529
Lint::new("abc", "group1", "abc", None, "module_name"),
530530
Lint::new("should_assert_eq", "group1", "abc", None, "module_name"),
531531
Lint::new("should_assert_eq2", "group2", "abc", Some("abc"), "deprecated"),
532-
Lint::new("incorrect_internal", "internal_style", "abc", None, "module_name"),
532+
Lint::new("internal", "internal_style", "abc", None, "module_name"),
533533
];
534534
let expected = vec![
535535
" LintId::of(&module_name::ABC),".to_string(),
536+
" LintId::of(&module_name::INTERNAL),".to_string(),
536537
" LintId::of(&module_name::SHOULD_ASSERT_EQ),".to_string(),
537538
];
538539
assert_eq!(expected, gen_lint_group_list(lints));

0 commit comments

Comments
 (0)