diff options
| author | flip1995 <hello@philkrones.com> | 2020-02-14 14:42:24 +0100 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2020-02-14 14:42:24 +0100 |
| commit | 50a2f971fcfb1156dd6bad37f88ba7e651390714 (patch) | |
| tree | 5ef5bbf47b5f14ac3e4a1b0229d03c96fafabffc | |
| parent | 07026983f5e46ac5c5caf2dc86014a83297a0c4f (diff) | |
| download | rust-50a2f971fcfb1156dd6bad37f88ba7e651390714.tar.gz rust-50a2f971fcfb1156dd6bad37f88ba7e651390714.zip | |
Adapt gen_lint_group_list test to also generate internal lints
| -rw-r--r-- | clippy_dev/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clippy_dev/src/lib.rs b/clippy_dev/src/lib.rs index 8e6479b64c4..6fe7bb155ac 100644 --- a/clippy_dev/src/lib.rs +++ b/clippy_dev/src/lib.rs @@ -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)); |
