Skip to content

Commit ec25a42

Browse files
committed
Add comment for include!() usage
1 parent f85063c commit ec25a42

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tools/tidy/src/run_make_tests.rs

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ pub fn check(root_path: &Path, bless: bool, bad: &mut bool) {
99
let tests_path = &root_path.join("tests");
1010

1111
let allowed_makefiles = {
12+
// We use `include!` here which includes the file as Rust syntax because we want to have
13+
// a comment that discourages people from adding entries to
14+
// `expected_run_make_makefiles.txt` unless *absolutely* necessary.
1215
let allowed_makefiles = include!("expected_run_make_makefiles.txt");
1316
let is_sorted = allowed_makefiles.windows(2).all(|w| w[0] < w[1]);
1417
if !is_sorted && !bless {

0 commit comments

Comments
 (0)