From 113b7f7be15c49fcd0854ca53486e92f1badfdd6 Mon Sep 17 00:00:00 2001 From: Andy Russell Date: Mon, 4 Feb 2019 12:41:01 -0500 Subject: allow shorthand syntax for deprecation reason --- src/test/rustdoc/deprecated.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/test/rustdoc') diff --git a/src/test/rustdoc/deprecated.rs b/src/test/rustdoc/deprecated.rs index ca3f380ed28..ecb74719d74 100644 --- a/src/test/rustdoc/deprecated.rs +++ b/src/test/rustdoc/deprecated.rs @@ -26,3 +26,8 @@ pub struct V; // 'Deprecated$' #[deprecated] pub struct W; + +// @matches deprecated/struct.X.html '//*[@class="stab deprecated"]' \ +// 'Deprecated: shorthand reason$' +#[deprecated = "shorthand reason"] +pub struct X; -- cgit 1.4.1-3-g733a5