summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/decl_macro.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/rustdoc/decl_macro.rs
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/rustdoc/decl_macro.rs')
-rw-r--r--src/test/rustdoc/decl_macro.rs56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/test/rustdoc/decl_macro.rs b/src/test/rustdoc/decl_macro.rs
deleted file mode 100644
index 94ade31b5..000000000
--- a/src/test/rustdoc/decl_macro.rs
+++ /dev/null
@@ -1,56 +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) {'
- pub(in a) macro by_example_vis_named {
- ($foo:expr) => {}
- }
- }
- }
-}