FailureNote JSON value is not useful #60425
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Currently the
FailureNote
diagnostic level serializes to the empty string. This results in JSON messages containinglevel: ""
, which I'm not sure how to interpret.This was added in #48684, though reading that PR I can't really figure out why it was added and how it relates to compiletest changes.
An easy way to see this is to trigger a diagnostic that prints "For more information…", for example:
will emit a JSON value like this:
The empty string is not very descriptive of how to handle the message. I would suggest having it serialize to something more deliberate, such as "failure-note". I can't really tell what the intent of
FailureNote
is, so it's hard to say what it should be.cc @GuillaumeGomez who might know more.
The text was updated successfully, but these errors were encountered: