Crate rustc_errors [] [src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, and unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Reexports

pub use emitter::ColorConfig;
pub use diagnostic::Diagnostic;
pub use diagnostic::SubDiagnostic;
pub use diagnostic::DiagnosticStyledString;
pub use diagnostic::StringPart;
pub use diagnostic_builder::DiagnosticBuilder;

Modules

diagnostic [
Experimental
]
diagnostic_builder [
Experimental
]
emitter [
Experimental
]
registry [
Experimental
]

Structs

CodeSuggestion [
Experimental
]
ExplicitBug [
Experimental
]

Signifies that the compiler died with an explicit call to .bug or .span_bug rather than a failed assertion, etc.

FatalError [
Experimental
]

Used as a return value to signify a fatal error occurred. (It is also used as the argument to panic at the moment, but that will eventually not be true.)

Handler [
Experimental
]

A handler deals with errors; certain errors (fatal, bug, unimpl) may cause immediate exit, others log errors for later reporting.

Substitution [
Experimental
]

See the docs on CodeSuggestion::substitutions

Enums

Level [
Experimental
]
RenderSpan [
Experimental
]

Traits

CodeMapper [
Experimental
]

Functions

expect [
Experimental
]