Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3e0242c

Browse files
committedFeb 1, 2025··
Remove a footgun-y feature / relic of the past from the compiletest DSL
1 parent 01a26c0 commit 3e0242c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed
 

‎src/tools/compiletest/src/header.rs

Lines changed: 0 additions & 8 deletions
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)
Please sign in to comment.