File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -234,15 +234,9 @@ impl Default for Alignment {
234234}
235235
236236#[ cfg( target_pointer_width = "16" ) ]
237- type AlignmentEnum = AlignmentEnum16 ;
238- #[ cfg( target_pointer_width = "32" ) ]
239- type AlignmentEnum = AlignmentEnum32 ;
240- #[ cfg( target_pointer_width = "64" ) ]
241- type AlignmentEnum = AlignmentEnum64 ;
242-
243237#[ derive( Copy , Clone , PartialEq , Eq ) ]
244238#[ repr( u16 ) ]
245- enum AlignmentEnum16 {
239+ enum AlignmentEnum {
246240 _Align1Shl0 = 1 << 0 ,
247241 _Align1Shl1 = 1 << 1 ,
248242 _Align1Shl2 = 1 << 2 ,
@@ -261,9 +255,10 @@ enum AlignmentEnum16 {
261255 _Align1Shl15 = 1 << 15 ,
262256}
263257
258+ #[ cfg( target_pointer_width = "32" ) ]
264259#[ derive( Copy , Clone , PartialEq , Eq ) ]
265260#[ repr( u32 ) ]
266- enum AlignmentEnum32 {
261+ enum AlignmentEnum {
267262 _Align1Shl0 = 1 << 0 ,
268263 _Align1Shl1 = 1 << 1 ,
269264 _Align1Shl2 = 1 << 2 ,
@@ -298,9 +293,10 @@ enum AlignmentEnum32 {
298293 _Align1Shl31 = 1 << 31 ,
299294}
300295
296+ #[ cfg( target_pointer_width = "64" ) ]
301297#[ derive( Copy , Clone , PartialEq , Eq ) ]
302298#[ repr( u64 ) ]
303- enum AlignmentEnum64 {
299+ enum AlignmentEnum {
304300 _Align1Shl0 = 1 << 0 ,
305301 _Align1Shl1 = 1 << 1 ,
306302 _Align1Shl2 = 1 << 2 ,
You can’t perform that action at this time.
0 commit comments