Skip to content

Commit b245b84

Browse files
committed
Don't check Makefile directives
1 parent e705fea commit b245b84

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
@@ -971,6 +971,17 @@ fn iter_header(
971971
// First try to accept `ui_test` style comments
972972
} else if let Some((header_revision, original_directive_line)) = line_directive(comment, ln)
973973
{
974+
// Let Makefiles and non-rs files just get handled in the regular way.
975+
if testfile.extension().map(|e| e != "rs").unwrap_or(true) {
976+
it(HeaderLine {
977+
line_number,
978+
original_line,
979+
header_revision,
980+
directive: original_directive_line,
981+
});
982+
continue;
983+
}
984+
974985
let directive_ln = original_directive_line.trim();
975986

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

0 commit comments

Comments
 (0)