about summary refs log tree commit diff
path: root/tests/ui/rmeta
AgeCommit message (Collapse)AuthorLines
2023-11-24Show number in error message even for one errorNilstrieb-4/+4
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-21Auto merge of #115691 - jsgf:typed-json-diags, r=est31,dtolnaybors-1/+1
Add `$message_type` field to distinguish 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`: Future incompatibility report `unused_extern`: Unused crate warnings/errors This matches the "internally tagged" representation for serde enums.
2023-11-18tweak logic of "unknown field" labelEsteban Küber-1/+6
2023-10-13Use `$message_type` as the tagJeremy Fitzhardinge-1/+1
`type` turned out to be controversial.
2023-09-19Add `type` field to json diagnostic outputsJeremy Fitzhardinge-1/+1
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-08-30Emit error instead of ICE when optimized MIR is missingMartin Nordholts-0/+25
Closes 51388.
2023-07-19Rewrite rmeta-rpass test to work with the new check for all crate sources ↵bjorn3-35/+0
being in sync
2023-01-11Move /src/test to /testsAlbert Larsan-0/+163