[][src]Module 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
Margin
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

ANONYMIZED_LINE_NUM
DEFAULT_COLUMN_WIDTH

Default column width, used in tests and when terminal dimensions cannot be determined.

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

draw_col_separator
draw_col_separator_no_space
draw_col_separator_no_space_with_style
draw_multiline_line
draw_note_separator
draw_range
emit_to_destination
is_case_difference

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

num_overlap
overlaps