rustc_errors

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 ๐Ÿ”’
  • Handles the writing of HumanReadableErrorType::Default and HumanReadableErrorType::Short
  • Margin ๐Ÿ”’
  • An emitter that does nothing when emitting a non-fatal diagnostic. Fatal diagnostics are forwarded to fatal_dcx to avoid silent failures of rustc, as witnessed e.g. in issue #89358.
  • UnderlineParts ๐Ÿ”’

Enumsยง

Constantsยง

Traitsยง

  • Emitter trait for emitting errors.

Functionsยง

Type Aliasesยง