diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-25 13:12:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-25 13:12:43 +0200 |
| commit | 959b6e324ce2786a4adade6cef222ffbd20f3791 (patch) | |
| tree | 1198254311edbbef1b757b0dbe9f7641dba75dd2 /src/libstd/lib.rs | |
| parent | 85943fd7c88ddf870b03afdd6cd6782721c348e1 (diff) | |
| parent | e0590ea76f528357add6fd6615a82cf49e44f271 (diff) | |
| download | rust-959b6e324ce2786a4adade6cef222ffbd20f3791.tar.gz rust-959b6e324ce2786a4adade6cef222ffbd20f3791.zip | |
Rollup merge of #64639 - davidtwco:rfc-2008-stabilization, r=Centril
Stabilize `#[non_exhaustive]` (RFC 2008) Fixes #44109. This pull request stabilizes the `#[non_exhaustive]` attribute, which is used to indicate that a type will have more fields / variants added in the future. It can be applied to `struct`s, `enum`s and `enum` variants. See https://github.com/rust-lang/rust/issues/44109#issuecomment-533356866 for the stabilization report. r? @Centril
Diffstat (limited to 'src/libstd/lib.rs')
| -rw-r--r-- | src/libstd/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 2894cd1c1f6..c7adad896a5 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -283,7 +283,7 @@ #![feature(needs_panic_runtime)] #![feature(never_type)] #![feature(nll)] -#![feature(non_exhaustive)] +#![cfg_attr(bootstrap, feature(non_exhaustive))] #![feature(on_unimplemented)] #![feature(optin_builtin_traits)] #![feature(panic_info_message)] |
