@@ -204,7 +204,7 @@ mod c_long_definition {
204
204
// be UB.
205
205
#[ doc = include_str ! ( "c_void.md" ) ]
206
206
#[ lang = "c_void" ]
207
- #[ cfg_attr ( not ( doc ) , repr( u8 ) ) ] // work around https://github.com/rust-lang/rust/issues/90435
207
+ #[ repr( u8 ) ]
208
208
#[ stable( feature = "core_c_void" , since = "1.30.0" ) ]
209
209
pub enum c_void {
210
210
#[ unstable(
@@ -245,7 +245,7 @@ impl fmt::Debug for c_void {
245
245
target_os = "uefi" ,
246
246
windows,
247
247
) ) ]
248
- #[ cfg_attr ( not ( doc ) , repr( transparent) ) ] // work around https://github.com/rust-lang/rust/issues/90435
248
+ #[ repr( transparent) ]
249
249
#[ unstable(
250
250
feature = "c_variadic" ,
251
251
reason = "the `c_variadic` feature has not been properly tested on \
@@ -297,7 +297,7 @@ impl<'f> fmt::Debug for VaListImpl<'f> {
297
297
not( target_os = "uefi" ) ,
298
298
not( windows) ,
299
299
) ) ]
300
- #[ cfg_attr ( not ( doc ) , repr( C ) ) ] // work around https://github.com/rust-lang/rust/issues/66401
300
+ #[ repr( C ) ]
301
301
#[ derive( Debug ) ]
302
302
#[ unstable(
303
303
feature = "c_variadic" ,
@@ -317,7 +317,7 @@ pub struct VaListImpl<'f> {
317
317
318
318
/// PowerPC ABI implementation of a `va_list`.
319
319
#[ cfg( all( target_arch = "powerpc" , not( target_os = "uefi" ) , not( windows) ) ) ]
320
- #[ cfg_attr ( not ( doc ) , repr( C ) ) ] // work around https://github.com/rust-lang/rust/issues/66401
320
+ #[ repr( C ) ]
321
321
#[ derive( Debug ) ]
322
322
#[ unstable(
323
323
feature = "c_variadic" ,
@@ -337,7 +337,7 @@ pub struct VaListImpl<'f> {
337
337
338
338
/// s390x ABI implementation of a `va_list`.
339
339
#[ cfg( target_arch = "s390x" ) ]
340
- #[ cfg_attr ( not ( doc ) , repr( C ) ) ] // work around https://github.com/rust-lang/rust/issues/66401
340
+ #[ repr( C ) ]
341
341
#[ derive( Debug ) ]
342
342
#[ unstable(
343
343
feature = "c_variadic" ,
@@ -356,7 +356,7 @@ pub struct VaListImpl<'f> {
356
356
357
357
/// x86_64 ABI implementation of a `va_list`.
358
358
#[ cfg( all( target_arch = "x86_64" , not( target_os = "uefi" ) , not( windows) ) ) ]
359
- #[ cfg_attr ( not ( doc ) , repr( C ) ) ] // work around https://github.com/rust-lang/rust/issues/66401
359
+ #[ repr( C ) ]
360
360
#[ derive( Debug ) ]
361
361
#[ unstable(
362
362
feature = "c_variadic" ,
@@ -374,7 +374,7 @@ pub struct VaListImpl<'f> {
374
374
}
375
375
376
376
/// A wrapper for a `va_list`
377
- #[ cfg_attr ( not ( doc ) , repr( transparent) ) ] // work around https://github.com/rust-lang/rust/issues/90435
377
+ #[ repr( transparent) ]
378
378
#[ derive( Debug ) ]
379
379
#[ unstable(
380
380
feature = "c_variadic" ,
0 commit comments