about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/json.rs
AgeCommit message (Collapse)AuthorLines
2021-03-27lazily calls some fnsklensy-1/+1
2021-02-07Make sure all fields are accounted for in `encode_fields!`Jeremy Fitzhardinge-4/+31
This will make sure the encoder will get updated if any new fields are added to Diagnostic.
2021-02-07Implement Encoder for Diagnostic manuallyJeremy Fitzhardinge-1/+33
...so we can skip serializing `tool_metadata` if it hasn't been set. This makes the output a bit cleaner, and avoiding having to update a bunch of unrelated tests.
2021-02-07Add `--extern-loc` to augment unused crate dependency diagnosticsJeremy Fitzhardinge-0/+6
This allows a build system to indicate a location in its own dependency specification files (eg Cargo's `Cargo.toml`) which can be reported along side any unused crate dependency. This supports several types of location: - 'json' - provide some json-structured data, which is included in the json diagnostics in a `tool_metadata` field - 'raw' - emit the provided string into the output. This also appears as a json string in `tool_metadata`. If no `--extern-location` is explicitly provided then a default json entry of the form `"tool_metadata":{"name":<cratename>,"path":<cratepath>}` is emitted.
2020-10-30Some workAaron Hill-2/+8
2020-10-30Implement rustc side of report-future-incompatAaron Hill-2/+33
2020-10-30Fix even more clippy warningsJoshua Nelson-4/+1
2020-08-30mv compiler to compiler/mark-0/+446