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