rustdoc: Treat decl macros like other items
This commit is contained in:
parent
143ce0920a
commit
9016711bf1
9 changed files with 31 additions and 102 deletions
|
@ -3,29 +3,17 @@
|
|||
|
||||
#![crate_name = "foo"]
|
||||
|
||||
//@ has 'foo/macro.todo.html'
|
||||
//@ has - '//span[@class="macro"]' 'macro_rules!'
|
||||
//@ hasraw - ' todo {'
|
||||
|
||||
//@ hasraw - '{ () => { ... }; ($('
|
||||
//@ has - '//span[@class="macro-nonterminal"]' '$'
|
||||
//@ has - '//span[@class="macro-nonterminal"]' 'arg'
|
||||
//@ hasraw - ':tt)+'
|
||||
//@ hasraw - ') => { ... }; }'
|
||||
//@ has 'foo/macro.todo.html' '//pre' 'macro_rules! todo { \
|
||||
// () => { ... }; \
|
||||
// ($($arg:tt)+) => { ... }; \
|
||||
// }'
|
||||
pub use std::todo;
|
||||
|
||||
mod mod1 {
|
||||
//@ has 'foo/macro.macro1.html'
|
||||
//@ hasraw - 'macro_rules!'
|
||||
//@ hasraw - 'macro1'
|
||||
//@ hasraw - '{ () => { ... }; ($('
|
||||
//@ has - '//span[@class="macro-nonterminal"]' '$'
|
||||
//@ has - '//span[@class="macro-nonterminal"]' 'arg'
|
||||
//@ hasraw - ':'
|
||||
//@ hasraw - 'expr'
|
||||
//@ hasraw - '),'
|
||||
//@ hasraw - '+'
|
||||
//@ hasraw - ') => { ... }; }'
|
||||
//@ has 'foo/macro.macro1.html' '//pre' 'macro_rules! macro1 { \
|
||||
// () => { ... }; \
|
||||
// ($($arg:expr),+) => { ... }; \
|
||||
// }'
|
||||
#[macro_export]
|
||||
macro_rules! macro1 {
|
||||
() => {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue