about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorPotHix <pothix@pothix.com>2019-11-07 22:46:45 -0300
committerPotHix <pothix@pothix.com>2019-11-08 12:32:46 -0300
commit3fa8692a5e5f69133464dabb52f549a46529ffe6 (patch)
tree7d5f6c6b9d2245b35a9308184ed34c8dee7dcc77 /src/libsyntax
parente8f43b72eb2596f360004f6cdf9cdde4b9e789e1 (diff)
downloadrust-3fa8692a5e5f69133464dabb52f549a46529ffe6.tar.gz
rust-3fa8692a5e5f69133464dabb52f549a46529ffe6.zip
Suggest `#[repr(C)]` instead of `#[repr(C, packed, ...)]`
The code was previously suggesting `#[repr(C, packed, ...)]` for
incorrect uses of `repr` (e.g. `#[repr = "C"]`). This change suggests
the usage of `#[repr(C)]` instead.

r? @estebank

ref #61286
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate/builtin_attrs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/feature_gate/builtin_attrs.rs b/src/libsyntax/feature_gate/builtin_attrs.rs
index b32a887c6b2..157c755a1b1 100644
--- a/src/libsyntax/feature_gate/builtin_attrs.rs
+++ b/src/libsyntax/feature_gate/builtin_attrs.rs
@@ -231,7 +231,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
     ),
     ungated!(link_name, Whitelisted, template!(NameValueStr: "name")),
     ungated!(no_link, Normal, template!(Word)),
-    ungated!(repr, Normal, template!(List: "C, packed, ...")),
+    ungated!(repr, Normal, template!(List: "C")),
     ungated!(export_name, Whitelisted, template!(NameValueStr: "name")),
     ungated!(link_section, Whitelisted, template!(NameValueStr: "name")),
     ungated!(no_mangle, Whitelisted, template!(Word)),