Skip to content

Commit 9a1d1f6

Browse files
committed
Remove more documentation cruft
1 parent 971027d commit 9a1d1f6

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@
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")]
3433
extern crate std as core;
3534

3635
#[macro_use]

src/macros.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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

src/unix/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,7 @@ pub const ATF_PUBL: ::c_int = 0x08;
301301
pub const ATF_USETRAILERS: ::c_int = 0x10;
302302

303303
cfg_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

0 commit comments

Comments
 (0)