Skip to content

Commit

Permalink
Don't check Makefile directives
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Feb 24, 2024
1 parent c230627 commit e7e58a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tools/compiletest/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,8 @@ fn iter_header(
directive: original_directive_line,
});
continue;
} else {
// Too prone to false positives to handle Makefile `#` directives...1
} else if testfile.extension().is_some_and(|e| e == "rs") {
*poisoned = true;
eprintln!(
"error: detected unknown compiletest test directive `{}` in {}:{}",
Expand All @@ -997,7 +998,7 @@ fn iter_header(
directive: original_directive_line,
});
continue;
} else {
} else if testfile.extension().is_some_and(|e| e == "rs") {
*poisoned = true;
eprintln!(
"error: detected unknown compiletest test directive `{}` in {}:{}",
Expand Down

0 comments on commit e7e58a0

Please sign in to comment.