1
Fork 0

Add new diagnostic writer using annotate-snippet library

This adds a new diagnostic writer `AnnotateRsEmitterWriter` that uses
the [`annotate-snippet`][as] library to print out the human readable
diagnostics.

The goal is to eventually switch over to using the library instead of
maintaining our own diagnostics output.

This commit does *not* add all the required features to the new
diagnostics writer. It is only meant as a starting point so that other
people can contribute as well.

[as]: https://github.com/rust-lang/annotate-snippets-rs
This commit is contained in:
Philipp Hansch 2019-05-31 22:01:27 +02:00
parent acda261de8
commit 3f727aeeb7
No known key found for this signature in database
GPG key ID: 82AA61CAA11397E6
6 changed files with 219 additions and 2 deletions

View file

@ -33,6 +33,7 @@ use termcolor::{ColorSpec, Color};
mod diagnostic;
mod diagnostic_builder;
pub mod emitter;
pub mod annotate_rs_emitter;
mod snippet;
pub mod registry;
mod styled_buffer;