@@ -128,6 +128,35 @@ If you would like to import all exported macros, write `macro_use` with no
128128arguments.
129129"## ,
130130
131+ E0467 : r##"
132+ Macro reexport declarations were empty or malformed.
133+
134+ Erroneous code examples:
135+
136+ ```compile_fail,E0467
137+ #[macro_reexport] // error: no macros listed for export
138+ extern crate macros_for_good;
139+
140+ #[macro_reexport(fun_macro = "foo")] // error: not a macro identifier
141+ extern crate other_macros_for_good;
142+ ```
143+
144+ This is a syntax error at the level of attribute declarations.
145+
146+ Currently, `macro_reexport` requires at least one macro name to be listed.
147+ Unlike `macro_use`, listing no names does not reexport all macros from the
148+ given crate.
149+
150+ Decide which macros you would like to export and list them properly.
151+
152+ These are proper reexport declarations:
153+
154+ ```ignore
155+ #[macro_reexport(some_macro, another_macro)]
156+ extern crate macros_for_good;
157+ ```
158+ "## ,
159+
131160}
132161
133162register_diagnostics ! {
@@ -139,7 +168,6 @@ register_diagnostics! {
139168 E0462 , // found staticlib `..` instead of rlib or dylib
140169 E0464 , // multiple matching crates for `..`
141170 E0465 , // multiple .. candidates for `..` found
142- E0467 , // bad macro reexport
143171 E0468 , // an `extern crate` loading macros must be at the crate root
144172 E0469 , // imported macro not found
145173 E0470 , // reexported macro not found
0 commit comments