[][src]Crate rustc_errors

⚙️ 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.

Diagnostics creation and emission for rustc.

This module contains the code for creating and emitting diagnostics.

Re-exports

pub use emitter::ColorConfig;

Modules

annotate_snippet_emitter_writerInternal

Emit diagnostics using the annotate-snippets library

diagnosticInternal
diagnostic_builderInternal
emitterInternal

The current rustc diagnostics emitter.

jsonInternal

A JSON emitter for errors.

lockInternal

Bindings to acquire a global named lock.

registryInternal
snippetInternal
styled_bufferInternal

Macros

pluralizeInternal

Structs

CodeSuggestionInternal
DiagnosticInternal
DiagnosticBuilderInternal

Used for emitting structured error messages and other diagnostic information.

DiagnosticStyledStringInternal
ExplicitBugInternal

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

FatalErrorInternal

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.)

FatalErrorMarkerInternal
HandlerInternal

A handler deals with errors and other compiler output. Certain errors (fatal, bug, unimpl) may cause immediate exit, others log errors for later reporting.

HandlerFlagsInternal
HandlerInnerInternal

This inner struct exists to keep it all behind a single lock; this is done to prevent possible deadlocks in a multi-threaded compiler, as well as inconsistent state observation.

SubDiagnosticInternal

For example a note attached to an error.

SubstitutionInternal

See the docs on CodeSuggestion::substitutions

SubstitutionPartInternal

Enums

ApplicabilityInternal

Indicates the confidence in the correctness of a suggestion.

DiagnosticIdInternal
LevelInternal
StashKeyInternal

A key denoting where from a diagnostic was stashed.

SuggestionStyleInternal

Constants

TRACK_DIAGNOSTICSInternal
_Internal

Functions

default_track_diagnosticInternal

Type Definitions

PResultInternal