Skip to main content

Module emitter

Module emitter 

Source
Expand description

The current rustc diagnostics emitter.

An Emitter takes care of generating the output from a Diag 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§

Buffy 🔒
EmitterWithNote
An emitter that adds a note to each diagnostic.
HumanReadableErrorType
Describes the way the content of the rendered field of the json output is generated
SilentEmitter

Enums§

ColorConfig
ConfusionType
Represents the type of confusion detected between original and suggested code.
OutputTheme
TimingEvent

Constants§

MAX_SUGGESTIONS
Maximum number of suggestions to be shown
OUTPUT_REPLACEMENTS 🔒

Traits§

Emitter
Emitter trait for emitting errors and other structured information.

Functions§

detect_confusion_type
Whether the original and suggested code are visually similar enough to warrant extra wording.
get_stderr_color_choice
is_different
Whether the original and suggested code are the same.
normalize_whitespace 🔒
should_show_source_code 🔒
stderr_destination

Type Aliases§

Destination
DynEmitter