Skip to content

Commit

Permalink
Update decl_macro test, add decl_macro_priv test for --document-priva…
Browse files Browse the repository at this point in the history
…te-items
  • Loading branch information
CraftSpider committed Nov 28, 2020
1 parent c007f43 commit 949b72e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@

#![feature(decl_macro)]

// @has macros_2/macro.my_macro.html //pre 'pub macro my_macro() {'
// @has decl_macro/macro.my_macro.html //pre 'pub macro my_macro() {'
// @has - //pre '...'
// @has - //pre '}'
pub macro my_macro() {

}

// @has macros_2/macro.my_macro_2.html //pre 'pub macro my_macro_2($($tok:tt)*) {'
// @has decl_macro/macro.my_macro_2.html //pre 'pub macro my_macro_2($($tok:tt)*) {'
// @has - //pre '...'
// @has - //pre '}'
pub macro my_macro_2($($tok:tt)*) {
Expand Down
13 changes: 13 additions & 0 deletions src/test/rustdoc/decl_macro_priv.rs
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() {}

0 comments on commit 949b72e

Please sign in to comment.