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§
- 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