Struct rustc_errors::json::Diagnostic [−][src]
struct Diagnostic {
message: String,
code: Option<DiagnosticCode>,
level: &'static str,
spans: Vec<DiagnosticSpan>,
children: Vec<Diagnostic>,
rendered: Option<String>,
tool_metadata: ToolMetadata,
}Fields
message: StringExpand description
The primary error message.
code: Option<DiagnosticCode>level: &'static strExpand description
“error: internal compiler error”, “error”, “warning”, “note”, “help”.
spans: Vec<DiagnosticSpan>children: Vec<Diagnostic>Expand description
Associated diagnostic messages.
rendered: Option<String>Expand description
The message as rustc would render it.
tool_metadata: ToolMetadataExpand description
Extra tool metadata
Implementations
impl Diagnostic[src]
impl Diagnostic[src]