We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e705fea commit b245b84Copy full SHA for b245b84
src/tools/compiletest/src/header.rs
@@ -971,6 +971,17 @@ fn iter_header(
971
// First try to accept `ui_test` style comments
972
} else if let Some((header_revision, original_directive_line)) = line_directive(comment, ln)
973
{
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
+
985
let directive_ln = original_directive_line.trim();
986
987
if let Some((directive_name, _)) = directive_ln.split_once([':', ' ']) {
0 commit comments