Skip to content

Commit 3171cdf

Browse files
Rollup merge of #47535 - Manishearth:ignore-target, r=kennytm
add target/ to ignored tidy dirs Sometimes you get a target directory from running cargo in the rust repo (the root is `src/`), and it contains generated files. Just whitelist it since it causes tidy to spew warnings uncontrollably.
2 parents 223b474 + 005791b commit 3171cdf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/tidy/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ fn filter_dirs(path: &Path) -> bool {
6969
"src/tools/miri",
7070
"src/librustc/mir/interpret",
7171
"src/librustc_mir/interpret",
72+
"src/target",
7273
];
7374
skip.iter().any(|p| path.ends_with(p))
7475
}

0 commit comments

Comments
 (0)