-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c5fdef
commit b9a85b3
Showing
6 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Checks that private macros are documented when `--document-private-items` | ||
// is present. | ||
// | ||
// This is a regression test for issue #73754. | ||
// | ||
// compile-flags: --document-private-items | ||
|
||
#![feature(decl_macro)] | ||
|
||
|
||
// @has macro_document_private/macro.some_macro.html | ||
macro some_macro { | ||
(a: tt) => {} | ||
} | ||
|
||
// @has macro_document_private/macro.another_macro.html | ||
macro_rules! another_macro { | ||
(a: tt) => {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Checks that it is possible to make a macro public through a `pub use` of its | ||
// parent module. | ||
// | ||
// This is a regression test for issue #87257. | ||
|
||
#![feature(decl_macro)] | ||
|
||
mod outer { | ||
pub mod inner { | ||
pub macro some_macro() {} | ||
} | ||
} | ||
|
||
// @has macro_indirect_use/inner/index.html | ||
// @has macro_indirect_use/inner/macro.some_macro.html | ||
pub use outer::inner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Checks that you can set a lint level specficially for a macro definition. | ||
// | ||
// This is a regression test for issue #59306. | ||
// | ||
// check-pass | ||
|
||
|
||
#[deny(missing_docs)] | ||
mod module { | ||
#[allow(missing_docs)] | ||
#[macro_export] | ||
macro_rules! hello { | ||
() => () | ||
} | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters