From a3d71d7405d7a7f2ca846a57597841502a2272ef Mon Sep 17 00:00:00 2001 From: QuietMisdreavus Date: Sun, 7 Jan 2018 17:09:16 -0600 Subject: [PATCH] add a macro to the intra-links test --- src/test/rustdoc/intra-links.rs | 23 +++++++++++++++-------- 1 file 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, } -- 2.44.0