[][src]Trait rustc_errors::emitter::Emitter

pub trait Emitter {
    fn emit(&mut self, db: &DiagnosticBuilder);

    fn should_show_explain(&self) -> bool { ... }
}
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Emitter trait for emitting errors.

Required methods

fn emit(&mut self, db: &DiagnosticBuilder)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Emit a structured diagnostic.

Loading content...

Provided methods

fn should_show_explain(&self) -> bool

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Checks if should show explanations about "rustc --explain"

Loading content...

Implementors

impl Emitter for EmitterWriter[src]

Loading content...