Auto merge of #86735 - jhpratt:rfc-3107, r=petrochenkov
Implement RFC 3107: `#[derive(Default)]` on enums with a `#[default]` attribute This PR implements RFC 3107, which permits `#[derive(Default)]` on enums where a unit variant has a `#[default]` attribute. See comments for current status.
This commit is contained in:
commit
aea2e446f0
14 changed files with 511 additions and 76 deletions
|
@ -677,6 +677,9 @@ declare_features! (
|
|||
/// Infer generic args for both consts and types.
|
||||
(active, generic_arg_infer, "1.55.0", Some(85077), None),
|
||||
|
||||
/// Allows `#[derive(Default)]` and `#[default]` on enums.
|
||||
(active, derive_default_enum, "1.56.0", Some(86985), None),
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// feature-group-end: actual feature gates
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue