[−][src]Trait rustc_errors::emitter::Emitter
Emitter trait for emitting errors.
Required methods
fn emit_diagnostic(&mut self, db: &DiagnosticBuilder)
Emit a structured diagnostic.
Provided methods
fn maybe_emit_json_directive(&mut self, _directive: String)
Emit a JSON directive. The default is to do nothing; this should only be emitted with --error-format=json.
fn should_show_explain(&self) -> bool
Checks if should show explanations about "rustc --explain"