Struct syntax::json::Diagnostic [−][src]
struct Diagnostic { message: String, code: Option<DiagnosticCode>, level: &'static str, spans: Vec<DiagnosticSpan>, children: Vec<Diagnostic>, rendered: Option<String>, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fields
message: String
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
The primary error message.
code: Option<DiagnosticCode>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
level: &'static str
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
"error: internal compiler error", "error", "warning", "note", "help".
spans: Vec<DiagnosticSpan>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
children: Vec<Diagnostic>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Associated diagnostic messages.
rendered: Option<String>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
The message as rustc would render it.
Methods
impl Diagnostic
[src]
impl Diagnostic
fn from_diagnostic_builder(
db: &DiagnosticBuilder,
je: &JsonEmitter
) -> Diagnostic
[src]
fn from_diagnostic_builder(
db: &DiagnosticBuilder,
je: &JsonEmitter
) -> Diagnostic
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn from_sub_diagnostic(db: &SubDiagnostic, je: &JsonEmitter) -> Diagnostic
[src]
fn from_sub_diagnostic(db: &SubDiagnostic, je: &JsonEmitter) -> Diagnostic
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl Encodable for Diagnostic
[src]
impl Encodable for Diagnostic
Auto Trait Implementations
impl Send for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Sync for Diagnostic