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