about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorQuietMisdreavus <grey@quietmisdreavus.net>2018-01-07 17:09:16 -0600
committerManish Goregaokar <manishsmail@gmail.com>2018-01-22 15:24:30 +0530
commita3d71d7405d7a7f2ca846a57597841502a2272ef (patch)
treece7043199fc6ee2b938093a7e8870641285d2e4a /src/test/rustdoc
parent00ce770e348a4d00985b8872fc4874480115f621 (diff)
downloadrust-a3d71d7405d7a7f2ca846a57597841502a2272ef.tar.gz
rust-a3d71d7405d7a7f2ca846a57597841502a2272ef.zip
add a macro to the intra-links test
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/intra-links.rs23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/test/rustdoc/intra-links.rs b/src/test/rustdoc/intra-links.rs
index f1165c9a6e4..5039d7f30cb 100644
--- a/src/test/rustdoc/intra-links.rs
+++ b/src/test/rustdoc/intra-links.rs
@@ -17,16 +17,23 @@
 // @has - '//a/@href' '../intra_links/fn.this_function.html'
 // @has - '//a/@href' '../intra_links/constant.THIS_CONST.html'
 // @has - '//a/@href' '../intra_links/static.THIS_STATIC.html'
+// @has - '//a/@href' '../intra_links/macro.this_macro.html'
 //! In this crate we would like to link to:
 //!
-//! * [`ThisType`](struct ::ThisType)
-//! * [`ThisEnum`](enum ::ThisEnum)
-//! * [`ThisTrait`](trait ::ThisTrait)
-//! * [`ThisAlias`](type ::ThisAlias)
-//! * [`ThisUnion`](union ::ThisUnion)
-//! * [`this_function`](::this_function())
-//! * [`THIS_CONST`](const ::THIS_CONST)
-//! * [`THIS_STATIC`](static ::THIS_STATIC)
+//! * [`ThisType`](ThisType)
+//! * [`ThisEnum`](ThisEnum)
+//! * [`ThisTrait`](ThisTrait)
+//! * [`ThisAlias`](ThisAlias)
+//! * [`ThisUnion`](ThisUnion)
+//! * [`this_function`](this_function)
+//! * [`THIS_CONST`](THIS_CONST)
+//! * [`THIS_STATIC`](THIS_STATIC)
+//! * [`this_macro`](this_macro!)
+
+#[macro_export]
+macro_rules! this_macro {
+    () => {};
+}
 
 pub struct ThisType;
 pub enum ThisEnum { ThisVariant, }