compiletest: technically potential false positives for filecheck annotations #125825
Labels
A-compiletest
Area: The compiletest test runner
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is a fun one: in #121561 I added checks to error if we detect any legacy-directives-like comments (which are of the form
// <known_directive_name>
.In codegen tests, we have filecheck directives that can be revisioned:
... but unfortunately,
// known_directive_name
looks like a legacy directive to compiletest so we might error here even though it is not actually a legacy directive (it just "looks" like one for the heuristic I added).Technically a bug (false positive), but in practice changing the revision name to something else would sidestep this check.
Note: the legacy directive check would also fire on
The text was updated successfully, but these errors were encountered: