Skip to content

Commit 6e3320c

Browse files
committed
Test clippy_dev on CI and fix test
1 parent 5fc25d3 commit 6e3320c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ci/base-tests.sh

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ cargo build --features debugging
2222
cargo test --features debugging
2323
cd clippy_lints && cargo test && cd ..
2424
cd rustc_tools_util && cargo test && cd ..
25+
cd clippy_dev && cargo test && cd ..
2526
# check that the lint lists are up-to-date
2627
./util/update_lints.py -c
2728

clippy_dev/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,12 @@ fn test_gen_modules_list() {
381381
let lints = vec![
382382
Lint::new("should_assert_eq", "group1", "abc", None, "module_name"),
383383
Lint::new("should_assert_eq2", "group2", "abc", Some("abc"), "deprecated"),
384-
Lint::new("incorrect_internal", "internal_style", "abc", None, "another_module"),
384+
Lint::new("incorrect_stuff", "group3", "abc", None, "another_module"),
385385
Lint::new("incorrect_internal", "internal_style", "abc", None, "module_name"),
386386
];
387387
let expected = vec![
388-
"pub mod another_module;\n".to_string(),
389-
"pub mod module_name;\n".to_string(),
388+
"pub mod another_module;".to_string(),
389+
"pub mod module_name;".to_string(),
390390
];
391391
assert_eq!(expected, gen_modules_list(lints));
392392
}

0 commit comments

Comments
 (0)