diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2016-10-11 16:07:14 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2016-10-11 16:08:36 +0200 |
| commit | 4bb68be68106c655486a6a9d68780bd1b7cc9cd3 (patch) | |
| tree | aea2820010e0619e3900bf0f1b75a52fef952d4d /src/libsyntax | |
| parent | b0eee76d25fc3388cdc0eb78fe84228e90ae8c88 (diff) | |
| download | rust-4bb68be68106c655486a6a9d68780bd1b7cc9cd3.tar.gz rust-4bb68be68106c655486a6a9d68780bd1b7cc9cd3.zip | |
Add feature gate for `dropck_eyepatch` feature (RFC 1327).
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 9eed1d61244..c2eae29c16d 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -167,6 +167,9 @@ declare_features! ( // RFC 1238 (active, dropck_parametricity, "1.3.0", Some(28498)), + // Allows using the may_dangle attribute; RFC 1327 + (active, dropck_eyepatch, "1.10.0", Some(34761)), + // Allows the use of custom attributes; RFC 572 (active, custom_attribute, "1.0.0", Some(29642)), @@ -617,6 +620,11 @@ pub const KNOWN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeGat "unsafe_destructor_blind_to_params has unstable semantics \ and may be removed in the future", cfg_fn!(dropck_parametricity))), + ("may_dangle", + Normal, + Gated("dropck_eyepatch", + "may_dangle has unstable semantics and may be removed in the future", + cfg_fn!(dropck_eyepatch))), ("unwind", Whitelisted, Gated("unwind_attributes", "#[unwind] is experimental", cfg_fn!(unwind_attributes))), |
