diff --git a/src/lib.rs b/src/lib.rs index b1afc08a01afa9fa26d27a6961aeb3a6bc23d8fb..3fddb3f504b0ff7ff527597d6c7a449a5effe940 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -25,12 +25,11 @@ not(any( feature = "use_std", feature = "rustc-dep-of-std", - cross_platform_docs, )), no_std )] -#[cfg(all(not(cross_platform_docs), feature = "use_std"))] +#[cfg(feature = "use_std")] extern crate std as core; #[macro_use] diff --git a/src/macros.rs b/src/macros.rs index af7bbdd37bb94463cd11907371d0cfd78f9d12f2..c48ae8bc40b416a99a8b30dadb02bc0d54f044a6 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -124,16 +124,9 @@ macro_rules! f { $($body:stmt);* })*) => ($( #[inline] - #[cfg(not(cross_platform_docs))] pub unsafe extern fn $i($($arg: $argty),*) -> $ret { $($body);* } - - #[cfg(cross_platform_docs)] - #[allow(dead_code)] - pub unsafe extern fn $i($($arg: $argty),*) -> $ret { - loop {} - } )*) } diff --git a/src/unix/mod.rs b/src/unix/mod.rs index cb0862f55ad6387554d8879bb599201f4ba8b76d..057a93bd75266046223ff1c681620c95987d32e0 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -301,9 +301,7 @@ pub const ATF_PUBL: ::c_int = 0x08; pub const ATF_USETRAILERS: ::c_int = 0x10; cfg_if! { - if #[cfg(cross_platform_docs)] { - // on dox builds don't pull in anything - } else if #[cfg(target_os = "l4re")] { + if #[cfg(target_os = "l4re")] { // required libraries for L4Re are linked externally, ATM } else if #[cfg(feature = "use_std")] { // cargo build, don't pull in anything extra as the libstd dep