Skip to content

Commit b7860f0

Browse files
committed
Remove a footgun-y feature / relic of the past from the compiletest DSL
1 parent 613bdd4 commit b7860f0

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/tools/compiletest/src/header.rs

-8
Original file line numberDiff line numberDiff line change
@@ -882,14 +882,6 @@ fn iter_header(
882882
}
883883
let ln = ln.trim();
884884

885-
// Assume that any directives will be found before the first module or function. This
886-
// doesn't seem to be an optimization with a warm page cache. Maybe with a cold one.
887-
// FIXME(jieyouxu): this will cause `//@` directives in the rest of the test file to
888-
// not be checked.
889-
if ln.starts_with("fn") || ln.starts_with("mod") {
890-
return;
891-
}
892-
893885
let Some(directive_line) = line_directive(line_number, comment, ln) else {
894886
continue;
895887
};

0 commit comments

Comments
 (0)