mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
5c8170656b
Currently the json-formatted outputs have no way to unambiguously determine which kind of message is being output. A consumer can look for specific fields in the json object (eg "message"), but there's no guarantee that in future some other kind of output will have a field of the same name. This PR adds a `"type"` field to add json outputs which can be used to unambiguously determine which kind of output it is. The mapping is: diagnostic: regular compiler diagnostics artifact: artifact notifications future_incompat: Report of future incompatibility unused_extern: Unused crate warnings/errors This matches the "internally tagged" representation for serde enums. |
||
---|---|---|
.. | ||
auxiliary | ||
E0271.rs | ||
E0271.stderr | ||
flag-human.rs | ||
flag-human.stderr | ||
flag-json.rs | ||
flag-json.stderr | ||
long-E0308.rs | ||
long-E0308.stderr | ||
non-1-width-unicode-multiline-label.rs | ||
non-1-width-unicode-multiline-label.stderr | ||
non-whitespace-trimming-2.rs | ||
non-whitespace-trimming-2.stderr | ||
non-whitespace-trimming-unicode.rs | ||
non-whitespace-trimming-unicode.stderr | ||
non-whitespace-trimming.rs | ||
non-whitespace-trimming.stderr | ||
tab-column-numbers.rs | ||
tab-column-numbers.stderr | ||
tabs-trimming.rs | ||
tabs-trimming.stderr | ||
whitespace-trimming-2.rs | ||
whitespace-trimming-2.stderr | ||
whitespace-trimming.rs | ||
whitespace-trimming.stderr |