about summary refs log tree commit diff
path: root/tests/rustdoc/macro_rules-matchers.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-10-29 02:34:25 +0100
committerLeón Orell Valerian Liehr <me@fmease.dev>2024-11-13 16:03:57 +0100
commit9016711bf1f43db68f0ba51a9852b65a2270ae61 (patch)
tree907224bb7632d344311c227079f71c0769f8a3b8 /tests/rustdoc/macro_rules-matchers.rs
parent143ce0920a2307b19831160a01f06f107610f1b2 (diff)
downloadrust-9016711bf1f43db68f0ba51a9852b65a2270ae61.tar.gz
rust-9016711bf1f43db68f0ba51a9852b65a2270ae61.zip
rustdoc: Treat decl macros like other items
Diffstat (limited to 'tests/rustdoc/macro_rules-matchers.rs')
-rw-r--r--tests/rustdoc/macro_rules-matchers.rs28
1 files changed, 8 insertions, 20 deletions
diff --git a/tests/rustdoc/macro_rules-matchers.rs b/tests/rustdoc/macro_rules-matchers.rs
index c3ee8febdf5..2c9fb50539a 100644
--- a/tests/rustdoc/macro_rules-matchers.rs
+++ b/tests/rustdoc/macro_rules-matchers.rs
@@ -3,29 +3,17 @@
 
 #![crate_name = "foo"]
 
-//@ has 'foo/macro.todo.html'
-//@ has - '//span[@class="macro"]' 'macro_rules!'
-//@ hasraw - ' todo {'
-
-//@ hasraw - '{ () =&gt; { ... }; ($('
-//@ has - '//span[@class="macro-nonterminal"]' '$'
-//@ has - '//span[@class="macro-nonterminal"]' 'arg'
-//@ hasraw - ':tt)+'
-//@ hasraw - ') =&gt; { ... }; }'
+//@ 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 - '{ () =&gt; { ... }; ($('
-    //@ has - '//span[@class="macro-nonterminal"]' '$'
-    //@ has - '//span[@class="macro-nonterminal"]' 'arg'
-    //@ hasraw - ':'
-    //@ hasraw - 'expr'
-    //@ hasraw - '),'
-    //@ hasraw - '+'
-    //@ hasraw - ') =&gt; { ... }; }'
+    //@ has 'foo/macro.macro1.html' '//pre' 'macro_rules! macro1 { \
+    //      () => { ... }; \
+    //      ($($arg:expr),+) => { ... }; \
+    // }'
     #[macro_export]
     macro_rules! macro1 {
         () => {};