diff options
| author | kennytm <kennytm@gmail.com> | 2018-12-23 00:08:01 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-12-23 02:12:23 +0800 |
| commit | 60b4ea0472810e1c223b5ec41da8d2ed9b124b18 (patch) | |
| tree | d400c1b828363356355391a8667d3dbaecf5ae47 /src/libsyntax | |
| parent | e4430e034044e7917aeec195f51cb36306b42da7 (diff) | |
| parent | e5e19d960815a66d9094a817319ca92c7ed13872 (diff) | |
| download | rust-60b4ea0472810e1c223b5ec41da8d2ed9b124b18.tar.gz rust-60b4ea0472810e1c223b5ec41da8d2ed9b124b18.zip | |
Rollup merge of #57049 - cramertj:repr-packed, r=Centril
Stabilize #[repr(packed(N))] Fixes https://github.com/rust-lang/rust/issues/33158
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 844f49fe842..db84703afde 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -397,9 +397,6 @@ declare_features! ( // Multiple patterns with `|` in `if let` and `while let`. (active, if_while_or_patterns, "1.26.0", Some(48215), None), - // Allows `#[repr(packed)]` attribute on structs. - (active, repr_packed, "1.26.0", Some(33158), None), - // Allows macro invocations in `extern {}` blocks. (active, macros_in_extern, "1.27.0", Some(49476), None), @@ -695,6 +692,8 @@ declare_features! ( (accepted, self_in_typedefs, "1.32.0", Some(49303), None), // `use path as _;` and `extern crate c as _;` (accepted, underscore_imports, "1.33.0", Some(48216), None), + // Allows `#[repr(packed(N))]` attribute on structs. + (accepted, repr_packed, "1.33.0", Some(33158), None), ); // If you change this, please modify `src/doc/unstable-book` as well. You must @@ -1588,13 +1587,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> { gate_feature_post!(&self, repr_simd, attr.span, "SIMD types are experimental and possibly buggy"); } - if let Some((name, _)) = item.name_value_literal() { - if name == "packed" { - gate_feature_post!(&self, repr_packed, attr.span, - "the `#[repr(packed(n))]` attribute \ - is experimental"); - } - } } } } |
