2021-03-26 16:10:21 -04:00
|
|
|
#![deny(rustdoc::invalid_codeblock_attributes)]
|
2022-08-18 19:27:29 +01:00
|
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
2019-11-15 19:41:50 +01:00
|
|
|
//! This library is used to gather all error codes into one place,
|
|
|
|
//! the goal being to make their maintenance easier.
|
2019-11-11 22:45:32 +01:00
|
|
|
|
|
|
|
macro_rules! register_diagnostics {
|
2023-02-25 20:14:10 +13:00
|
|
|
($($ecode:ident: $message:expr,)*) => (
|
|
|
|
pub static DIAGNOSTICS: &[(&str, &str)] = &[
|
|
|
|
$( (stringify!($ecode), $message), )*
|
2019-11-11 22:45:32 +01:00
|
|
|
];
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
mod error_codes;
|
2020-01-18 21:53:53 +01:00
|
|
|
pub use error_codes::DIAGNOSTICS;
|