summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-02-13 10:38:54 +0100
committergnzlbg <gonzalobg88@gmail.com>2019-02-13 14:48:50 +0100
commit7ac0fe53ebb955bb8280e77169328db0b9a51ab7 (patch)
tree1ff9b769b144ce14dc52067157b2672924d74414 /src/lib.rs
parenta8a817a028aaaf4cedacf65b55bed935342e4af4 (diff)
downloadrust-libc-7ac0fe53ebb955bb8280e77169328db0b9a51ab7.tar.gz
Cleanup dox mess
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 72e93aaf62..5d8a097b79 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -193,6 +193,15 @@ cfg_if! {
use core::num;
#[allow(unused_imports)]
use core::mem;
+ #[doc(hidden)]
+ #[allow(unused_imports)]
+ pub use core::clone::Clone;
+ #[doc(hidden)]
+ #[allow(unused_imports)]
+ pub use core::marker::Copy;
+ #[doc(hidden)]
+ #[allow(unused_imports)]
+ pub use core::option::Option;
} else {
#[doc(hidden)]
#[allow(unused_imports)]
@@ -206,12 +215,26 @@ cfg_if! {
#[doc(hidden)]
#[allow(unused_imports)]
pub use core::mem;
+ #[doc(hidden)]
+ #[allow(unused_imports)]
+ pub use core::clone::Clone;
+ #[doc(hidden)]
+ #[allow(unused_imports)]
+ pub use core::marker::Copy;
+ #[doc(hidden)]
+ #[allow(unused_imports)]
+ pub use core::option::Option;
}
}
}
}
-mod dox;
+cfg_if! {
+ if #[cfg(cross_platform_docs)] {
+ mod dox;
+ pub use self::dox::*;
+ }
+}
cfg_if! {
if #[cfg(windows)] {