diff options
| author | Jeremy Fitzhardinge <jsgf@fb.com> | 2023-09-08 18:47:59 -0700 |
|---|---|---|
| committer | Jeremy Fitzhardinge <jsgf@fb.com> | 2023-09-19 14:17:02 -0700 |
| commit | 5c8170656bb18995795124d4690f8f3ab503e184 (patch) | |
| tree | df7cc6adc980f06f231322457eb03703cfc302a2 /compiler/rustc_codegen_llvm/src | |
| parent | ac5ac4754a4a837f7138a1fa5ab01475b63fc9fe (diff) | |
| download | rust-5c8170656bb18995795124d4690f8f3ab503e184.tar.gz rust-5c8170656bb18995795124d4690f8f3ab503e184.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
