File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 2525 not( any(
2626 feature = "use_std" ,
2727 feature = "rustc-dep-of-std" ,
28- cross_platform_docs,
2928 ) ) ,
3029 no_std
3130) ]
3231
33- #[ cfg( all ( not ( cross_platform_docs ) , feature = "use_std" ) ) ]
32+ #[ cfg( feature = "use_std" ) ]
3433extern crate std as core;
3534
3635#[ macro_use]
Original file line number Diff line number Diff line change @@ -124,16 +124,9 @@ macro_rules! f {
124124 $( $body: stmt) ;*
125125 } ) * ) => ( $(
126126 #[ inline]
127- #[ cfg( not( cross_platform_docs) ) ]
128127 pub unsafe extern fn $i( $( $arg: $argty) ,* ) -> $ret {
129128 $( $body) ;*
130129 }
131-
132- #[ cfg( cross_platform_docs) ]
133- #[ allow( dead_code) ]
134- pub unsafe extern fn $i( $( $arg: $argty) ,* ) -> $ret {
135- loop { }
136- }
137130 ) * )
138131}
139132
Original file line number Diff line number Diff line change @@ -301,9 +301,7 @@ pub const ATF_PUBL: ::c_int = 0x08;
301301pub const ATF_USETRAILERS : :: c_int = 0x10 ;
302302
303303cfg_if ! {
304- if #[ cfg( cross_platform_docs) ] {
305- // on dox builds don't pull in anything
306- } else if #[ cfg( target_os = "l4re" ) ] {
304+ if #[ cfg( target_os = "l4re" ) ] {
307305 // required libraries for L4Re are linked externally, ATM
308306 } else if #[ cfg( feature = "use_std" ) ] {
309307 // cargo build, don't pull in anything extra as the libstd dep
You can’t perform that action at this time.
0 commit comments