about summary refs log tree commit diff
path: root/src/libsyntax/feature_gate
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-11-19 07:49:54 +0000
committerbors <bors@rust-lang.org>2019-11-19 07:49:54 +0000
commit2cad8bb659066b42fc518c95def384956126bd3f (patch)
tree6e4528f58f0e26bd7c8346df3ecfb80de4b1eb1c /src/libsyntax/feature_gate
parentd1da8023dafd3e277b5a4c5475aa2cb199a176b9 (diff)
parent3fa8692a5e5f69133464dabb52f549a46529ffe6 (diff)
downloadrust-2cad8bb659066b42fc518c95def384956126bd3f.tar.gz
rust-2cad8bb659066b42fc518c95def384956126bd3f.zip
Auto merge of #66206 - PotHix:master, r=estebank
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/feature_gate')
-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 555c715771a..57dae23f0dc 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)),