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