-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update decl_macro test, add decl_macro_priv test for --document-priva…
…te-items
- Loading branch information
1 parent
c007f43
commit 949b72e
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
5 changes: 2 additions & 3 deletions
5
src/test/rustdoc/macros_2.rs → src/test/rustdoc/decl_macro.rs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// compile-flags: --document-private-items | ||
|
||
#![feature(decl_macro)] | ||
|
||
// @has decl_macro_priv/macro.crate_macro.html //pre 'pub(crate) macro crate_macro() {' | ||
// @has - //pre '...' | ||
// @has - //pre '}' | ||
pub(crate) macro crate_macro() {} | ||
|
||
// @has decl_macro_priv/macro.priv_macro.html //pre 'macro priv_macro() {' | ||
// @has - //pre '...' | ||
// @has - //pre '}' | ||
macro priv_macro() {} |