Indroduce feature flag for RFC-2229
Signed-off-by: Aman Arora <me@aman-arora.com>
This commit is contained in:
parent
127a6ede1d
commit
88310cc0eb
7 changed files with 66 additions and 16 deletions
|
@ -616,6 +616,9 @@ declare_features! (
|
|||
/// Enables `#[cfg(panic = "...")]` config key.
|
||||
(active, cfg_panic, "1.49.0", Some(77443), None),
|
||||
|
||||
/// Allows capturing disjoint fields in a closure/generator (RFC 2229).
|
||||
(active, capture_disjoint_fields, "1.49.0", Some(53488), None),
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// feature-group-end: actual feature gates
|
||||
// -------------------------------------------------------------------------
|
||||
|
@ -639,6 +642,7 @@ pub const INCOMPLETE_FEATURES: &[Symbol] = &[
|
|||
sym::inline_const,
|
||||
sym::repr128,
|
||||
sym::unsized_locals,
|
||||
sym::capture_disjoint_fields,
|
||||
];
|
||||
|
||||
/// Some features are not allowed to be used together at the same time, if
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue