Skip to content

Commit 6579112

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

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
@@ -964,6 +964,17 @@ fn iter_header(
964964
{
965965
let directive_ln = original_directive_line.trim();
966966

967+
// Let Makefiles just get handled in the regular way.
968+
if testfile.extension().is_some_and(|e| e != "rs") {
969+
it(HeaderLine {
970+
line_number,
971+
original_line,
972+
header_revision,
973+
directive: original_directive_line,
974+
});
975+
continue;
976+
}
977+
967978
if let Some((directive_name, _)) = directive_ln.split_once([':', ' ']) {
968979
if KNOWN_DIRECTIVE_NAMES.contains(&directive_name) {
969980
it(HeaderLine {

0 commit comments

Comments
 (0)