diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-30 01:14:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-30 01:14:59 +0200 |
| commit | 549b3a13a15b5727846ef9ad24ab70ce970d794c (patch) | |
| tree | cd5af8a090ba17e29b4ec25d6a7d1b35eaafec28 /compiler | |
| parent | 4b79276e60398cdce8766c6fbfa694bf7325a95c (diff) | |
| parent | b778688f913bf6d3735b0b603b41c6989f513399 (diff) | |
| download | rust-549b3a13a15b5727846ef9ad24ab70ce970d794c.tar.gz rust-549b3a13a15b5727846ef9ad24ab70ce970d794c.zip | |
Rollup merge of #110983 - GuillaumeGomez:foreign-repr, r=notriddle
rustdoc: Get `repr` information through `AdtDef` for foreign items As suggested by `@notriddle,` this approach works too. The only downside is that the display of the original attribute isn't kept, but I think it's an acceptable downside. r? `@notriddle`
Diffstat (limited to 'compiler')
| -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 103e0f34407..c77292fdd16 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), + ungated!(repr, Normal, template!(List: "C"), DuplicatesOk, @only_local: true), 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), |
