about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorQuietMisdreavus <grey@quietmisdreavus.net>2017-08-21 13:43:45 -0500
committerQuietMisdreavus <grey@quietmisdreavus.net>2017-09-05 13:50:37 -0500
commitc491e195c467aa11e736457a6bc451e4fc214df6 (patch)
treeaac161964ef0adbe8c79d23215fac1eecbcf35d1 /src/libstd
parent2f1ef9ef1181298d46e79d5dde6bafeb6483926f (diff)
downloadrust-c491e195c467aa11e736457a6bc451e4fc214df6.tar.gz
rust-c491e195c467aa11e736457a6bc451e4fc214df6.zip
new attribute #[doc(masked)] to hide internal crates from std docs
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 33bf0d68126..6fa4a8738ac 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -347,19 +347,24 @@ use prelude::v1::*;
                  debug_assert_ne, unreachable, unimplemented, write, writeln, try)]
 extern crate core as __core;
 
-#[allow(deprecated)] extern crate rand as core_rand;
+#[doc(masked)]
+#[allow(deprecated)]
+extern crate rand as core_rand;
 #[macro_use]
 #[macro_reexport(vec, format)]
 extern crate alloc;
 extern crate alloc_system;
 extern crate std_unicode;
+#[doc(masked)]
 extern crate libc;
 
 // We always need an unwinder currently for backtraces
+#[doc(masked)]
 #[allow(unused_extern_crates)]
 extern crate unwind;
 
 // compiler-rt intrinsics
+#[doc(masked)]
 extern crate compiler_builtins;
 
 // During testing, this crate is not actually the "real" std library, but rather