diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-10-25 22:19:19 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-12-20 11:37:15 +0100 |
| commit | 164f0105bb65f31b89e5fb7f368c9e6f5833a3f8 (patch) | |
| tree | c398440b210bd52fbfc2ffe6f98760fff9422450 /src/libsyntax | |
| parent | 601bbf26a89f178374278030d7821e2cc77437f7 (diff) | |
| download | rust-164f0105bb65f31b89e5fb7f368c9e6f5833a3f8.tar.gz rust-164f0105bb65f31b89e5fb7f368c9e6f5833a3f8.zip | |
Add safe_suggestion attribute
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 77c53542dcb..dbb31b0e56c 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -304,6 +304,7 @@ declare_features! ( // Allows using `Self` and associated types in struct expressions and patterns. (active, more_struct_aliases, "1.14.0", Some(37544)), + // Allows #[link(..., cfg(..))] (active, link_cfg, "1.14.0", Some(37406)), @@ -314,6 +315,9 @@ declare_features! ( // Allows #[target_feature(...)] (active, target_feature, "1.15.0", None), + + // Allow safe suggestions for potential type conversions. + (active, safe_suggestion, "1.0.0", Some(37384)), ); declare_features! ( @@ -648,6 +652,11 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG "internal implementation detail", cfg_fn!(rustc_attrs))), + ("safe_suggestion", Whitelisted, Gated("safe_suggestion", + "the `#[safe_suggestion]` attribute \ + is an experimental feature", + cfg_fn!(safe_suggestion))), + // FIXME: #14408 whitelist docs since rustdoc looks at them ("doc", Whitelisted, Ungated), |
