Skip to content

Commit 4bb68be

Browse files
committed
Add feature gate for dropck_eyepatch feature (RFC 1327).
1 parent b0eee76 commit 4bb68be

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/libsyntax/feature_gate.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ declare_features! (
167167
// RFC 1238
168168
(active, dropck_parametricity, "1.3.0", Some(28498)),
169169

170+
// Allows using the may_dangle attribute; RFC 1327
171+
(active, dropck_eyepatch, "1.10.0", Some(34761)),
172+
170173
// Allows the use of custom attributes; RFC 572
171174
(active, custom_attribute, "1.0.0", Some(29642)),
172175

@@ -617,6 +620,11 @@ pub const KNOWN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeGat
617620
"unsafe_destructor_blind_to_params has unstable semantics \
618621
and may be removed in the future",
619622
cfg_fn!(dropck_parametricity))),
623+
("may_dangle",
624+
Normal,
625+
Gated("dropck_eyepatch",
626+
"may_dangle has unstable semantics and may be removed in the future",
627+
cfg_fn!(dropck_eyepatch))),
620628
("unwind", Whitelisted, Gated("unwind_attributes", "#[unwind] is experimental",
621629
cfg_fn!(unwind_attributes))),
622630

0 commit comments

Comments
 (0)