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 ๐
- Emitter
With Note - An emitter that adds a note to each diagnostic.
- Human
Readable Error Type - Describes the way the content of the
renderedfield of the json output is generated - Silent
Emitter
Enumsยง
- Color
Config - Confusion
Type - Represents the type of confusion detected between original and suggested code.
- Output
Theme - Timing
Event
Constantsยง
- BRIGHT_
BLUE ๐ - On Windows, BRIGHT_BLUE is hard to read on black. Use cyan instead.
- 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