about summary refs log tree commit diff
path: root/tests/rustdoc/decl_macro.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-05 16:40:02 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-05 17:47:18 +0200
commitd1f4a0bcb60ab868c496ca72a28b48ac0a4128af (patch)
tree5f9dc3dd1df27f8d4a2f7f06950943cc4ab3cc5c /tests/rustdoc/decl_macro.rs
parenteee6c9753588fe1888d3ddb264f9516e7ac56997 (diff)
downloadrust-d1f4a0bcb60ab868c496ca72a28b48ac0a4128af.tar.gz
rust-d1f4a0bcb60ab868c496ca72a28b48ac0a4128af.zip
Created `tests/rustdoc/macro` subfolder to limit number of files at the top level
Diffstat (limited to 'tests/rustdoc/decl_macro.rs')
-rw-r--r--tests/rustdoc/decl_macro.rs58
1 files changed, 0 insertions, 58 deletions
diff --git a/tests/rustdoc/decl_macro.rs b/tests/rustdoc/decl_macro.rs
deleted file mode 100644
index 040859baffb..00000000000
--- a/tests/rustdoc/decl_macro.rs
+++ /dev/null
@@ -1,58 +0,0 @@
-//@ compile-flags: --document-private-items
-
-#![feature(decl_macro)]
-
-//@ has decl_macro/macro.my_macro.html //pre 'pub macro my_macro() {'
-//@ has - //pre '...'
-//@ has - //pre '}'
-pub macro my_macro() {
-
-}
-
-//@ 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)*) {
-
-}
-
-//@ has decl_macro/macro.my_macro_multi.html //pre 'pub macro my_macro_multi {'
-//@ has - //pre '(_) => { ... },'
-//@ has - //pre '($foo:ident . $bar:expr) => { ... },'
-//@ has - //pre '($($foo:literal),+) => { ... },'
-//@ has - //pre '}'
-pub macro my_macro_multi {
-    (_) => {
-
-    },
-    ($foo:ident . $bar:expr) => {
-
-    },
-    ($($foo:literal),+) => {
-
-    }
-}
-
-//@ has decl_macro/macro.by_example_single.html //pre 'pub macro by_example_single($foo:expr) {'
-//@ has - //pre '...'
-//@ has - //pre '}'
-pub macro by_example_single {
-    ($foo:expr) => {}
-}
-
-mod a {
-    mod b {
-        //@ has decl_macro/a/b/macro.by_example_vis.html //pre 'pub(super) macro by_example_vis($foo:expr) {'
-        pub(in super) macro by_example_vis {
-            ($foo:expr) => {}
-        }
-        mod c {
-            //@ has decl_macro/a/b/c/macro.by_example_vis_named.html //pre 'pub(in a) macro by_example_vis_named($foo:expr) {'
-            // Regression test for <https://github.com/rust-lang/rust/issues/83000>:
-            //@ has - '//pre[@class="rust item-decl"]//a[@class="mod"]/@href' '../../index.html'
-            pub(in a) macro by_example_vis_named {
-                ($foo:expr) => {}
-            }
-        }
-    }
-}