[][src]Module rustc_errors::json

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

A JSON emitter for errors.

This works by converting errors to a simplified structural format (see the structs at the start of the file) and then serializing them. These should contain as much information about the error as possible.

The format of the JSON output should be considered unstable. For now the structs at the end of this file (Diagnostic*) specify the error format.

Structs

ArtifactNotificationInternal
DiagnosticInternal
DiagnosticCodeInternal
DiagnosticSpanInternal
DiagnosticSpanLineInternal
DiagnosticSpanMacroExpansionInternal
JsonEmitterInternal