[][src]Module rustc_ap_rustc_errors::emitter

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 rustc_session::config::ErrorOutputType.

Structs

EmitterWriter

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

FileWithAnnotatedLines
SilentEmitter

An emitter that does nothing when emitting a diagnostic.

Enums

ColorConfig
Destination
HumanReadableErrorType

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

WritableDst

Constants

MAX_HIGHLIGHT_LINES

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

MAX_SUGGESTIONS

Maximum number of suggestions to be shown

MAX_SUGGESTION_HIGHLIGHT_LINES

Maximum number of lines we will print for a multiline suggestion; arbitrary.

Traits

Emitter

Emitter trait for emitting errors.

Functions

is_case_difference

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