X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_errors%2Femitter.rs;h=fca8298409a61f5add93a7a787e6c4f6ba04cda2;hb=b3169552e2bf6ba8f9d3a8898acdcbd8f6aa3ac6;hp=3bf477efe35f91f05eb08e4bedb02ba8cb596ed9;hpb=de6bc12868569e32beecfe6ded4142aaf6a7434f;p=rust.git diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index 3bf477efe35..fca8298409a 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -1,3 +1,12 @@ +//! The current rustc diagnostics emitter. +//! +//! An `Emitter` takes care of generating the output from a `DiagnosticBuilder` struct. +//! +//! There are various `Emitter` implementations that generate different output formats such as +//! JSON and human readable output. +//! +//! The output types are defined in `librustc::session::config::ErrorOutputType`. + use Destination::*; use syntax_pos::{SourceFile, Span, MultiSpan};