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