[][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.

lockInternal

Bindings to acquire a global named lock.

registryInternal
snippetInternal
styled_bufferInternal

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
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
SuggestionStyleInternal

Constants

TRACK_DIAGNOSTICSInternal

Traits

SourceMapperInternal

Functions

default_track_diagnosticInternal

Type Definitions

SourceMapperDynInternal