Skip to content

Commit

Permalink
Adapt gen_lint_group_list test to also generate internal lints
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Feb 14, 2020
1 parent 0702698 commit 50a2f97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clippy_dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,11 @@ fn test_gen_lint_group_list() {
Lint::new("abc", "group1", "abc", None, "module_name"),
Lint::new("should_assert_eq", "group1", "abc", None, "module_name"),
Lint::new("should_assert_eq2", "group2", "abc", Some("abc"), "deprecated"),
Lint::new("incorrect_internal", "internal_style", "abc", None, "module_name"),
Lint::new("internal", "internal_style", "abc", None, "module_name"),
];
let expected = vec![
" LintId::of(&module_name::ABC),".to_string(),
" LintId::of(&module_name::INTERNAL),".to_string(),
" LintId::of(&module_name::SHOULD_ASSERT_EQ),".to_string(),
];
assert_eq!(expected, gen_lint_group_list(lints));
Expand Down

0 comments on commit 50a2f97

Please sign in to comment.