@@ -203,7 +203,7 @@ mod c_long_definition {
203203// be UB.
204204#[ doc = include_str ! ( "c_void.md" ) ]
205205#[ 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
207207#[ stable( feature = "core_c_void" , since = "1.30.0" ) ]
208208pub enum c_void {
209209 #[ unstable(
@@ -244,7 +244,7 @@ impl fmt::Debug for c_void {
244244 target_os = "uefi" ,
245245 windows,
246246) ) ]
247- #[ repr( transparent) ]
247+ #[ cfg_attr ( not ( doc ) , repr( transparent) ) ] // work around https://github.com/rust-lang/rust/issues/90435
248248#[ unstable(
249249 feature = "c_variadic" ,
250250 reason = "the `c_variadic` feature has not been properly tested on \
@@ -296,7 +296,7 @@ impl<'f> fmt::Debug for VaListImpl<'f> {
296296 not( target_os = "uefi" ) ,
297297 not( windows) ,
298298) ) ]
299- #[ repr( C ) ]
299+ #[ cfg_attr ( not ( doc ) , repr( C ) ) ] // work around https://github.com/rust-lang/rust/issues/66401
300300#[ derive( Debug ) ]
301301#[ unstable(
302302 feature = "c_variadic" ,
@@ -316,7 +316,7 @@ pub struct VaListImpl<'f> {
316316
317317/// PowerPC ABI implementation of a `va_list`.
318318#[ 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
320320#[ derive( Debug ) ]
321321#[ unstable(
322322 feature = "c_variadic" ,
@@ -336,7 +336,7 @@ pub struct VaListImpl<'f> {
336336
337337/// s390x ABI implementation of a `va_list`.
338338#[ cfg( target_arch = "s390x" ) ]
339- #[ repr( C ) ]
339+ #[ cfg_attr ( not ( doc ) , repr( C ) ) ] // work around https://github.com/rust-lang/rust/issues/66401
340340#[ derive( Debug ) ]
341341#[ unstable(
342342 feature = "c_variadic" ,
@@ -355,7 +355,7 @@ pub struct VaListImpl<'f> {
355355
356356/// x86_64 ABI implementation of a `va_list`.
357357#[ 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
359359#[ derive( Debug ) ]
360360#[ unstable(
361361 feature = "c_variadic" ,
@@ -373,7 +373,7 @@ pub struct VaListImpl<'f> {
373373}
374374
375375/// 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
377377#[ derive( Debug ) ]
378378#[ unstable(
379379 feature = "c_variadic" ,
0 commit comments