diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-08-22 19:56:14 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-09-03 13:39:35 +0300 |
| commit | d9b332bd69770cb716233b6998b11d345f6f184b (patch) | |
| tree | c83cf2e180339726ea9a9dee387e253d807cd12a /src/libsyntax | |
| parent | 2dc2fc5fc528aab7ba138f1a351df6f846dfec1d (diff) | |
Translate union constants
Fix alignment for packed unions Add some missing privacy test Get rid of `unimplemented_unions` macro
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/diagnostics/macros.rs | 7 | ||||
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/libsyntax/diagnostics/macros.rs b/src/libsyntax/diagnostics/macros.rs index e2a7ec0a33d..25e0428248d 100644 --- a/src/libsyntax/diagnostics/macros.rs +++ b/src/libsyntax/diagnostics/macros.rs @@ -108,13 +108,6 @@ macro_rules! help { } #[macro_export] -macro_rules! unimplemented_unions { - () => ({ - panic!("unions are not fully implemented"); - }) -} - -#[macro_export] macro_rules! register_diagnostics { ($($code:tt),*) => ( $(register_diagnostic! { $code })* diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index b40124bd774..287d33cc3e5 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -959,7 +959,7 @@ impl<'a> Visitor for PostExpansionVisitor<'a> { ast::ItemKind::Union(..) => { gate_feature_post!(&self, untagged_unions, i.span, - "unions are unstable and not fully implemented"); + "unions are unstable and possibly buggy"); } ast::ItemKind::DefaultImpl(..) => { |
