diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-04-19 17:46:13 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-04-21 22:02:53 +0200 |
| commit | 57bcabc1082c948e2cfda3f005c41d8236ead7a4 (patch) | |
| tree | 744cbb891ca3bf1b6648699f4257c36f0390d01e /src/libsyntax | |
| parent | 654cb84852a0485146f95bbebe14ac75b7ee111a (diff) | |
| download | rust-57bcabc1082c948e2cfda3f005c41d8236ead7a4.tar.gz rust-57bcabc1082c948e2cfda3f005c41d8236ead7a4.zip | |
Generate alias file
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 6426c9a92f2..3f0a402c213 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -460,6 +460,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", None, None), ); declare_features! ( @@ -1455,6 +1458,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" + ); } } } |
