rust/compiler/rustc_feature/src
Dylan DPC 27e2d811e6
Rollup merge of #94457 - jhpratt:stabilize-derive_default_enum, r=davidtwco
Stabilize `derive_default_enum`

This stabilizes `#![feature(derive_default_enum)]`, as proposed in [RFC 3107](https://github.com/rust-lang/rfcs/pull/3107) and tracked in #87517. In short, it permits you to `#[derive(Default)]` on `enum`s, indicating what the default should be by placing a `#[default]` attribute on the desired variant (which must be a unit variant in the interest of forward compatibility).

```````@rustbot``````` label +S-waiting-on-review +T-lang
2022-04-15 20:50:43 +02:00
..
accepted.rs Stabilize derive_default_enum 2022-04-07 20:03:19 -04:00
active.rs Rollup merge of #94457 - jhpratt:stabilize-derive_default_enum, r=davidtwco 2022-04-15 20:50:43 +02:00
builtin_attrs.rs Fix crate_type attribute to not warn on duplicates 2022-04-10 16:35:37 -07:00
lib.rs Stabilize derive_default_enum 2022-04-07 20:03:19 -04:00
removed.rs Remove in-band lifetimes 2022-02-24 18:50:33 -08:00
tests.rs tidy: Re-enable check for inline unit tests 2020-12-12 19:18:44 +03:00