[][src]Module rustc_errors::emitter

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

The current rustc diagnostics emitter.

An Emitter takes care of generating the output from a DiagnosticBuilder struct.

There are various Emitter implementations that generate different output formats such as JSON and human readable output.

The output types are defined in librustc::session::config::ErrorOutputType.

Structs

EmitterWriterInternal

Handles the writing of HumanReadableErrorType::Default and HumanReadableErrorType::Short

FileWithAnnotatedLinesInternal
MarginInternal
SilentEmitterInternal

An emitter that does nothing when emitting a diagnostic.

Enums

ColorConfigInternal
DestinationInternal
HumanReadableErrorTypeInternal

Describes the way the content of the rendered field of the json output is generated

WritableDstInternal

Constants

ANONYMIZED_LINE_NUMInternal
MAX_HIGHLIGHT_LINESInternal

maximum number of lines we will print for each error; arbitrary.

MAX_SUGGESTIONSInternal

maximum number of suggestions to be shown

Traits

EmitterInternal

Emitter trait for emitting errors.

Functions

draw_col_separatorInternal
draw_col_separator_no_spaceInternal
draw_col_separator_no_space_with_styleInternal
draw_multiline_lineInternal
draw_note_separatorInternal
draw_rangeInternal
emit_to_destinationInternal
is_case_differenceInternal

Whether the original and suggested code are visually similar enough to warrant extra wording.

num_overlapInternal
overlapsInternal