Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

Rustc Diagnostic JSON Output.

The following data types are copied from rust-lang/rust.

For examples of the JSON output, see JSON fixture files under tests/ directory.

Re-exportsยง

use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’

Structsยง

Diagnostic
The root diagnostic JSON output emitted by the compiler.
DiagnosticCode
The error code emitted by the compiler. See Rust error codes index.
DiagnosticSpan
Span information of a diagnostic item.
DiagnosticSpanLine
Span information of a single line.
DiagnosticSpanMacroExpansion ๐Ÿ”’
Span information for macro expansions.

Enumsยง

Applicability
Indicates the confidence in the correctness of a suggestion.