@@ -21,7 +21,7 @@ fn dogfood_clippy() {
21
21
22
22
// "" is the root package
23
23
for package in & [ "" , "clippy_dev" , "clippy_lints" , "clippy_utils" , "rustc_tools_util" ] {
24
- run_clippy_for_package ( package) ;
24
+ run_clippy_for_package ( package, & [ ] ) ;
25
25
}
26
26
}
27
27
@@ -38,7 +38,7 @@ fn run_metadata_collection_lint() {
38
38
39
39
// Run collection as is
40
40
std:: env:: set_var ( "ENABLE_METADATA_COLLECTION" , "1" ) ;
41
- run_clippy_for_package ( "clippy_lints" ) ;
41
+ run_clippy_for_package ( "clippy_lints" , & [ "-A" , "unfulfilled_lint_expectations" ] ) ;
42
42
43
43
// Check if cargo caching got in the way
44
44
if let Ok ( file) = File :: open ( metadata_output_path) {
@@ -61,10 +61,10 @@ fn run_metadata_collection_lint() {
61
61
. unwrap ( ) ;
62
62
63
63
// Running the collection again
64
- run_clippy_for_package ( "clippy_lints" ) ;
64
+ run_clippy_for_package ( "clippy_lints" , & [ "-A" , "unfulfilled_lint_expectations" ] ) ;
65
65
}
66
66
67
- fn run_clippy_for_package ( project : & str ) {
67
+ fn run_clippy_for_package ( project : & str , args : & [ & str ] ) {
68
68
let root_dir = PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) ) ;
69
69
70
70
let mut command = Command :: new ( & * test_utils:: CARGO_CLIPPY_PATH ) ;
@@ -76,6 +76,7 @@ fn run_clippy_for_package(project: &str) {
76
76
. arg ( "--all-targets" )
77
77
. arg ( "--all-features" )
78
78
. arg ( "--" )
79
+ . args ( args)
79
80
. args ( & [ "-D" , "clippy::all" ] )
80
81
. args ( & [ "-D" , "clippy::pedantic" ] )
81
82
. arg ( "-Cdebuginfo=0" ) ; // disable debuginfo to generate less data in the target dir
0 commit comments