]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_error_codes/lib.rs
Auto merge of #67964 - JohnTitor:rollup-pu5kosl, r=JohnTitor
[rust.git] / src / librustc_error_codes / lib.rs
index 36b1518c869b97c330a8e8439b5fb1f273e62e3f..14210fd69ad51b81a7432cdd64118723fb4f9665 100644 (file)
@@ -1,19 +1,14 @@
-//! This library is used to gather all error codes into one place. The goal
-//! being to make their maintenance easier.
+//! This library is used to gather all error codes into one place,
+//! the goal being to make their maintenance easier.
 
-#[macro_export]
 macro_rules! register_diagnostics {
-    ($($ecode:ident: $message:expr,)*) => (
-        $crate::register_diagnostics!{$($ecode:$message,)* ;}
-    );
-
     ($($ecode:ident: $message:expr,)* ; $($code:ident,)*) => (
         pub static DIAGNOSTICS: &[(&str, &str)] = &[
             $( (stringify!($ecode), $message), )*
         ];
 
         $(
-            pub const $ecode: &str = $message;
+            pub const $ecode: () = ();
         )*
         $(
             pub const $code: () = ();