We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59d4845 commit d51ea53Copy full SHA for d51ea53
src/libsyntax/feature_gate.rs
@@ -386,6 +386,9 @@ declare_features! (
386
// allow '|' at beginning of match arms (RFC 1925)
387
(active, match_beginning_vert, "1.21.0", Some(44101)),
388
389
+ // Future-proofing enums/structs with #[non_exhaustive] attribute (RFC 2008)
390
+ (active, non_exhaustive, "1.22.0", Some(44109)),
391
+
392
// Copy/Clone closures (RFC 2132)
393
(active, clone_closures, "1.22.0", Some(44490)),
394
(active, copy_closures, "1.22.0", Some(44490)),
@@ -614,6 +617,12 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
614
617
not yet settled",
615
618
cfg_fn!(structural_match))),
616
619
620
+ // RFC #2008
621
+ ("non_exhaustive", Whitelisted, Gated(Stability::Unstable,
622
+ "non_exhaustive",
623
+ "non exhaustive is an experimental feature",
624
+ cfg_fn!(non_exhaustive))),
625
626
("plugin", CrateLevel, Gated(Stability::Unstable,
627
"plugin",
628
"compiler plugins are experimental \
0 commit comments