mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-20 19:47:33 +00:00

c6e6ecb1af
added it to some of the
compiler's crates, but avoided adding it to all of them to reduce
bit-rot. This commit adds to more.
20 lines
667 B
Rust
20 lines
667 B
Rust
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
|
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
|
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
|
#![deny(rustdoc::invalid_codeblock_attributes)]
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
|
//! This library is used to gather all error codes into one place,
|
|
//! the goal being to make their maintenance easier.
|
|
|
|
macro_rules! register_diagnostics {
|
|
($($ecode:ident: $message:expr,)*) => (
|
|
pub static DIAGNOSTICS: &[(&str, &str)] = &[
|
|
$( (stringify!($ecode), $message), )*
|
|
];
|
|
)
|
|
}
|
|
|
|
mod error_codes;
|
|
pub use error_codes::DIAGNOSTICS;
|