diff options
| author | bors <bors@rust-lang.org> | 2017-05-27 05:28:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-05-27 05:28:24 +0000 |
| commit | 3e7908f616745573a11ad7dfad245f12be0069da (patch) | |
| tree | c0e4a7074737eb58b9ff722634ff5cb616dd625f /src/libsyntax | |
| parent | 557967766be6139bd747ab2c3dc56ff0c9b8852a (diff) | |
| parent | 73c73e4a9509e2ecf593589442bff802dd53c9b4 (diff) | |
| download | rust-3e7908f616745573a11ad7dfad245f12be0069da.tar.gz rust-3e7908f616745573a11ad7dfad245f12be0069da.zip | |
Auto merge of #42068 - petrochenkov:ustab, r=nikomatsakis
Stabilize unions with `Copy` fields and no destructor What else is needed: - [x] Documentation (https://github.com/rust-lang-nursery/reference/pull/57). - [x] Making assignments to `Copy` union fields safe (https://github.com/rust-lang/rust/pull/42083). - [ ] Backport? (The "stabilization decision" is from [Apr 13](https://github.com/rust-lang/rust/issues/32836#issuecomment-294018091), it's just this PR is late.) cc https://github.com/rust-lang/rust/issues/32836 r? @nikomatsakis
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index ca579409be4..c119fad1b73 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -1207,12 +1207,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> { } } - ast::ItemKind::Union(..) => { - gate_feature_post!(&self, untagged_unions, - i.span, - "unions are unstable and possibly buggy"); - } - ast::ItemKind::DefaultImpl(..) => { gate_feature_post!(&self, optin_builtin_traits, i.span, |
