Skip to content

Commit 1e86c63

Browse files
committed
Don't check Makefile directives
1 parent c230627 commit 1e86c63

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/tools/compiletest/src/header.rs

+11
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,17 @@ fn iter_header(
962962
// First try to accept `ui_test` style comments
963963
} else if let Some((header_revision, original_directive_line)) = line_directive(comment, ln)
964964
{
965+
// Let Makefiles and non-rs files just get handled in the regular way.
966+
if testfile.extension().map(|e| e != "rs").unwrap_or(true) {
967+
it(HeaderLine {
968+
line_number,
969+
original_line,
970+
header_revision,
971+
directive: original_directive_line,
972+
});
973+
continue;
974+
}
975+
965976
let directive_ln = original_directive_line.trim();
966977

967978
if let Some((directive_name, _)) = directive_ln.split_once([':', ' ']) {

0 commit comments

Comments
 (0)