diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-06-03 00:45:49 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-06-04 09:52:31 +0200 |
| commit | ded5c5a9eeb83ea7ec3c572a601afaaca6a3d9e6 (patch) | |
| tree | 5e1ff116a505d82fcf0557241556ea8af6c9e7aa /src/libsyntax | |
| parent | f784d5ead29cad25c05e82e0beb9fb7586f5e462 (diff) | |
| download | rust-ded5c5a9eeb83ea7ec3c572a601afaaca6a3d9e6.tar.gz rust-ded5c5a9eeb83ea7ec3c572a601afaaca6a3d9e6.zip | |
Put doc keyword behind feature flag
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 7349745fefe..51788b6063a 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -476,8 +476,12 @@ declare_features! ( // 'a: { break 'a; } (active, label_break_value, "1.28.0", Some(48594), None), + // #[panic_implementation] (active, panic_implementation, "1.28.0", Some(44489), None), + + // #[doc(keyword = "...")] + (active, doc_keyword, "1.28.0", Some(51315), None), ); declare_features! ( @@ -1506,6 +1510,10 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> { gate_feature_post!(&self, doc_alias, attr.span, "#[doc(alias = \"...\")] is experimental" ); + } else if content.iter().any(|c| c.check_name("keyword")) { + gate_feature_post!(&self, doc_keyword, attr.span, + "#[doc(keyword = \"...\")] is experimental" + ); } } } |
