1 #![deny(invalid_codeblock_attributes)]
2 //! This library is used to gather all error codes into one place,
3 //! the goal being to make their maintenance easier.
5 macro_rules! register_diagnostics {
6 ($($ecode:ident: $message:expr,)* ; $($code:ident,)*) => (
7 pub static DIAGNOSTICS: &[(&str, Option<&str>)] = &[
8 $( (stringify!($ecode), Some($message)), )*
9 $( (stringify!($code), None), )*
15 pub use error_codes::DIAGNOSTICS;