@@ -130,26 +130,8 @@ interpreted:
130
130
- ` linkage ` - on a static, this specifies the [ linkage
131
131
type] ( http://llvm.org/docs/LangRef.html#linkage-types ) .
132
132
133
- On ` enum ` s:
134
-
135
- - ` repr ` - on C-like enums, this sets the underlying type used for
136
- representation. Takes one argument, which is the primitive
137
- type this enum should be represented for, or ` C ` , which specifies that it
138
- should be the default ` enum ` size of the C ABI for that platform. Note that
139
- enum representation in C is undefined, and this may be incorrect when the C
140
- code is compiled with certain flags.
141
-
142
- On ` struct ` s:
143
-
144
- - ` repr ` - specifies the representation to use for this struct. Takes a list
145
- of options. The currently accepted ones are ` C ` and ` packed ` , which may be
146
- combined. ` C ` will use a C ABI compatible struct layout, and ` packed ` will
147
- remove any padding between fields (note that this is very fragile and may
148
- break platforms which require aligned access).
149
-
150
- On ` union ` s:
151
-
152
- - ` repr ` - Same as per ` struct ` .
133
+ See [ type layout] ( type-layout.html ) for documentation on the ` repr ` attribute
134
+ which can be used to control type layout.
153
135
154
136
## Macro-related attributes
155
137
@@ -416,4 +398,4 @@ You can implement `derive` for your own type through [procedural macros].
416
398
417
399
[ Doc comments ] : comments.html#doc-comments
418
400
[ The Rustdoc Book ] : ../rustdoc/the-doc-attribute.html
419
- [ procedural macros ] : procedural-macros.html
401
+ [ procedural macros ] : procedural-macros.html
0 commit comments