diff options
| author | bors <bors@rust-lang.org> | 2018-04-22 02:18:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-04-22 02:18:41 +0000 |
| commit | bbdd1cf744121ea3697b1dfb6426b0dc714e4f6b (patch) | |
| tree | 3843e10ed381f0964fe54612b73d342f30eebda8 /src/libsyntax | |
| parent | d5616e1f18abb46071581d096994a0ff6581e3f9 (diff) | |
| parent | 1ed3e77b8a254fd9cbf8f922d1f910d375a9d1e4 (diff) | |
| download | rust-bbdd1cf744121ea3697b1dfb6426b0dc714e4f6b.tar.gz rust-bbdd1cf744121ea3697b1dfb6426b0dc714e4f6b.zip | |
Auto merge of #49757 - GuillaumeGomez:never-search, r=QuietMisdreavus
Add specific never search Fixes #49529. r? @QuietMisdreavus
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index fe2466ff005..e4bfdf25001 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -463,6 +463,9 @@ declare_features! ( (active, proc_macro_mod, "1.27.0", None, None), (active, proc_macro_expr, "1.27.0", None, None), (active, proc_macro_non_items, "1.27.0", None, None), + + // #[doc(alias = "...")] + (active, doc_alias, "1.27.0", Some(50146), None), ); declare_features! ( @@ -1458,6 +1461,10 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> { gate_feature_post!(&self, doc_spotlight, attr.span, "#[doc(spotlight)] is experimental" ); + } else if content.iter().any(|c| c.check_name("alias")) { + gate_feature_post!(&self, doc_alias, attr.span, + "#[doc(alias = \"...\")] is experimental" + ); } } } |
