xur_errors/lib.rs
1//! Compiler diagnostics.
2//!
3//! Every compiler stage reports problems as a [`Diag`]; the [`Emitter`] turns
4//! them into annotated source snippets. This mirrors the split in
5//! `rustc_errors` between building a diagnostic and rendering it.
6
7mod diag;
8mod emitter;
9
10pub use diag::{Diag, Label, Level};
11pub use emitter::Emitter;