rust/tests/ui/lexer
bors b2b676d886 Auto merge of #108905 - ferrocene:pa-compiletest-ignore, r=ehuss
Validate `ignore` and `only` compiletest directive, and add human-readable ignore reasons

This PR adds strict validation for the `ignore` and `only` compiletest directives, failing if an unknown value is provided to them. Doing so uncovered 79 tests in `tests/ui` that had invalid directives, so this PR also fixes them.

Finally, this PR adds human-readable ignore reasons when tests are ignored due to `ignore` or `only` directives, like *"only executed when the architecture is aarch64"* or *"ignored when the operative system is windows"*. This was the original reason why I started working on this PR and #108659, as we need both of them for Ferrocene.

The PR is a draft because the code is extremely inefficient: it calls `rustc --print=cfg --target $target` for every rustc target (to gather the list of allowed ignore values), which on my system takes between 4s and 5s, and performs a lot of allocations of constant values. I'll fix both of them in the coming days.

r? `@ehuss`
2023-04-05 16:15:25 +00:00
..
error-stage.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
error-stage.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-108019-bad-emoji-recovery.rs Don't recover lifetimes/labels containing emojis as character literals 2023-02-14 17:31:58 +08:00
issue-108019-bad-emoji-recovery.stderr Don't recover lifetimes/labels containing emojis as character literals 2023-02-14 17:31:58 +08:00
lex-bad-binary-literal.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-binary-literal.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-3.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-4.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-5.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-5.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-6.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-6.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-7.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-char-literals-7.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-numeric-literals.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-numeric-literals.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-octal-literal.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-octal-literal.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-token.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bad-token.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bare-cr-nondoc-comment.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bare-cr-string-literal-doc-comment.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-bare-cr-string-literal-doc-comment.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-emoji-identifiers.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-emoji-identifiers.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-stray-backslash.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lex-stray-backslash.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lexer-crlf-line-endings-string-literal-doc-comment.rs remove invalid ignore-pretty 2023-04-03 09:24:11 +02:00
unterminated-comment.rs Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00
unterminated-comment.stderr Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00
unterminated-nested-comment.rs Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00
unterminated-nested-comment.stderr Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00