rust/tests
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
..
assembly
auxiliary
codegen
codegen-units
coverage-map coverage: Regression test for inconsistent handling of closure spans 2023-09-18 22:33:05 +10:00
debuginfo
incremental
mir-opt Auto merge of #115865 - RalfJung:mir-mod, r=oli-obk 2023-09-19 13:22:48 +00:00
pretty
run-coverage coverage: Regression test for inconsistent handling of closure spans 2023-09-18 22:33:05 +10:00
run-coverage-rustdoc
run-make Auto merge of #115627 - compiler-errors:icedump-no-std, r=m-ou-se 2023-09-19 16:56:25 +00:00
run-make-fulldeps
run-pass-valgrind
rustdoc Implement new eBNF for codeblock attributes 2023-09-15 21:32:28 +02:00
rustdoc-gui Rollup merge of #112725 - notriddle:notriddle/advanced-search, r=GuillaumeGomez 2023-09-19 11:35:49 +02:00
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui Update tests for custom classes 2023-09-19 17:29:39 +02:00
ui Add type field to json diagnostic outputs 2023-09-19 14:17:02 -07:00
ui-fulldeps
COMPILER_TESTS.md