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