rustc bad cli arg error messages doesn't respect --error-format=json
#140101
Labels
A-CLI
Area: Command-line interface (CLI) to the compiler
A-compiletest
Area: The compiletest test runner
A-diagnostics
Area: Messages for errors, warnings, and lints
C-discussion
Category: Discussion or questions that doesn't represent real issues.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Not surprising (and I don't really consider this a bug necessarily), but something like
doesn't respect
--error-format=json
. I think that is entirely reasonable, since--error-format
itself might be missing its value or get passed some invalid value 🤷Just opening an issue to note this, because the implication for ui tests is that this obviously won't get picked up by compiletest for the
//~?
error annotations which are based on JSON diagnostic messages.For test writers, the implication is simply that you can't use
and you'll need to use
as an fallback.
The text was updated successfully, but these errors were encountered: