rust/tests/ui/diagnostic-width
Jeremy Fitzhardinge 5c8170656b Add type field to json diagnostic outputs
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.
2023-09-19 14:17:02 -07:00
..
auxiliary Create AnnotationColumn struct to fix hard tab column numbers in errors 2023-03-28 09:18:55 -04:00
E0271.rs Hide more of long types in E0271 2023-01-11 21:40:39 +00:00
E0271.stderr new unstable option: -Zwrite-long-types-to-disk 2023-07-24 12:25:05 +01:00
flag-human.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
flag-human.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
flag-json.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
flag-json.stderr Add type field to json diagnostic outputs 2023-09-19 14:17:02 -07:00
long-E0308.rs new unstable option: -Zwrite-long-types-to-disk 2023-07-24 12:25:05 +01:00
long-E0308.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
non-1-width-unicode-multiline-label.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-1-width-unicode-multiline-label.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-whitespace-trimming-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-whitespace-trimming-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-whitespace-trimming-unicode.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-whitespace-trimming-unicode.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-whitespace-trimming.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-whitespace-trimming.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tab-column-numbers.rs Create AnnotationColumn struct to fix hard tab column numbers in errors 2023-03-28 09:18:55 -04:00
tab-column-numbers.stderr Create AnnotationColumn struct to fix hard tab column numbers in errors 2023-03-28 09:18:55 -04:00
tabs-trimming.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tabs-trimming.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
whitespace-trimming-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
whitespace-trimming-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
whitespace-trimming.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
whitespace-trimming.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00