diff options
| author | QuietMisdreavus <grey@quietmisdreavus.net> | 2017-10-04 22:00:22 -0500 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-11-17 22:50:15 +0100 |
| commit | 831fd783416d9f87ec9308ed56e891d0b1ffdbcd (patch) | |
| tree | fba456f839de14c0fc114beced70cf55a531f0e8 /src/libsyntax | |
| parent | cbe4ac30797f9e994b3ae275e3edf12b2d450800 (diff) | |
| download | rust-831fd783416d9f87ec9308ed56e891d0b1ffdbcd.tar.gz rust-831fd783416d9f87ec9308ed56e891d0b1ffdbcd.zip | |
add doc_highlight feature flag and tests
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 97eec3a21e9..9bfb3bdbdb4 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -381,6 +381,8 @@ declare_features! ( (active, doc_cfg, "1.21.0", Some(43781)), // #[doc(masked)] (active, doc_masked, "1.21.0", Some(44027)), + // #[doc(spotlight)] + (active, doc_spotlight, "1.22.0", None), // allow `#[must_use]` on functions and comparison operators (RFC 1940) (active, fn_must_use, "1.21.0", Some(43302)), @@ -1292,6 +1294,10 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> { gate_feature_post!(&self, doc_masked, attr.span, "#[doc(masked)] is experimental" ); + } else if content.iter().any(|c| c.check_name("spotlight")) { + gate_feature_post!(&self, doc_spotlight, attr.span, + "#[doc(spotlight)] is experimental" + ); } } } |
