1 // Checks that undocumented private macros will not generate `missing_docs`
2 // lints, but public ones will.
4 // This is a regression test for issue #57569
6 #![feature(decl_macro)]
7 //! Empty documentation.
9 macro new_style_private_macro {
13 pub(crate) macro new_style_crate_macro {
17 macro_rules! old_style_private_macro {
22 pub macro new_style_macro_in_private_module {
26 macro_rules! old_style_mod_private_macro {
31 macro_rules! exported_to_top_level {
32 //~^ ERROR missing documentation for macro
37 pub macro top_level_pub_macro {
38 //~^ ERROR missing documentation for macro
42 /// Empty documentation.