diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-04-27 16:40:59 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-04-27 16:40:59 +0200 |
| commit | adee37a080c7415f7ba496726557531ddf950919 (patch) | |
| tree | ce17c2cb7e70458db1fe73b5056a0e912e544bbf | |
| parent | 64bcb326516ef7490db46de88b87a4c0990097fe (diff) | |
| download | rust-adee37a080c7415f7ba496726557531ddf950919.tar.gz rust-adee37a080c7415f7ba496726557531ddf950919.zip | |
repr attribute needs to be stored to be used in doc(inline) by rustdoc
| -rw-r--r-- | compiler/rustc_feature/src/builtin_attrs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_feature/src/builtin_attrs.rs b/compiler/rustc_feature/src/builtin_attrs.rs index c77292fdd16..103e0f34407 100644 --- a/compiler/rustc_feature/src/builtin_attrs.rs +++ b/compiler/rustc_feature/src/builtin_attrs.rs @@ -344,7 +344,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ ), ungated!(link_name, Normal, template!(NameValueStr: "name"), FutureWarnPreceding), ungated!(no_link, Normal, template!(Word), WarnFollowing), - ungated!(repr, Normal, template!(List: "C"), DuplicatesOk, @only_local: true), + ungated!(repr, Normal, template!(List: "C"), DuplicatesOk), ungated!(export_name, Normal, template!(NameValueStr: "name"), FutureWarnPreceding), ungated!(link_section, Normal, template!(NameValueStr: "name"), FutureWarnPreceding), ungated!(no_mangle, Normal, template!(Word), WarnFollowing, @only_local: true), |
