about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-04-10 16:18:44 +0000
committerbors <bors@rust-lang.org>2015-04-10 16:18:44 +0000
commitc897ac04e2ebda378fd9e38f6ec0878ae3a2baf7 (patch)
treef26b1f3541943b61937faf150f90b46e9a8f15c5 /src/libcore
parent9539627ac76ca37d617a329dbd79c50c59cf59ee (diff)
parent445faca8441aae34c91318b6ad9e2049885af8dc (diff)
downloadrust-c897ac04e2ebda378fd9e38f6ec0878ae3a2baf7.tar.gz
rust-c897ac04e2ebda378fd9e38f6ec0878ae3a2baf7.zip
Auto merge of #24177 - alexcrichton:rustdoc, r=aturon
This commit series starts out with more official test harness support for rustdoc tests, and then each commit afterwards adds a test (where appropriate). Each commit should also test and finish independently of all others (they're all pretty separable).

I've uploaded a [copy of the documentation](http://people.mozilla.org/~acrichton/doc/std/) generated after all these commits were applied, and a double check on issues being closed would be greatly appreciated! I'll also browse the docs a bit and make sure nothing regressed too horribly.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/char.rs1
-rw-r--r--src/libcore/macros.rs1
-rw-r--r--src/libcore/num/mod.rs1
-rw-r--r--src/libcore/ptr.rs1
-rw-r--r--src/libcore/slice.rs1
-rw-r--r--src/libcore/str/mod.rs1
6 files changed, 5 insertions, 1 deletions
diff --git a/src/libcore/char.rs b/src/libcore/char.rs
index 010415b364a..ba9748eea71 100644
--- a/src/libcore/char.rs
+++ b/src/libcore/char.rs
@@ -139,6 +139,7 @@ pub fn from_digit(num: u32, radix: u32) -> Option<char> {
 // NB: the stabilization and documentation for this trait is in
 // unicode/char.rs, not here
 #[allow(missing_docs)] // docs in libunicode/u_char.rs
+#[doc(hidden)]
 pub trait CharExt {
     fn is_digit(self, radix: u32) -> bool;
     fn to_digit(self, radix: u32) -> Option<u32>;
diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs
index c21898d088d..ece419af951 100644
--- a/src/libcore/macros.rs
+++ b/src/libcore/macros.rs
@@ -229,7 +229,6 @@ macro_rules! writeln {
 /// Iterators:
 ///
 /// ```
-/// # #![feature(core)]
 /// fn divide_by_three(x: u32) -> u32 { // one of the poorest implementations of x/3
 ///     for i in 0.. {
 ///         if 3*i < i { panic!("u32 overflow"); }
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 7868e299cfc..9007a5142c3 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -2490,6 +2490,7 @@ pub enum FpCategory {
 //               `unused_self`. Removing it requires #8888 to be fixed.
 #[unstable(feature = "core",
            reason = "distribution of methods between core/std is unclear")]
+#[doc(hidden)]
 pub trait Float
     : Copy + Clone
     + NumCast
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs
index 36b33e7581d..a622ef78a21 100644
--- a/src/libcore/ptr.rs
+++ b/src/libcore/ptr.rs
@@ -89,6 +89,7 @@
 //! of unsafe pointers in Rust.
 
 #![stable(feature = "rust1", since = "1.0.0")]
+#![doc(primitive = "pointer")]
 
 use mem;
 use clone::Clone;
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs
index 70e60adf64c..0e6acf0160d 100644
--- a/src/libcore/slice.rs
+++ b/src/libcore/slice.rs
@@ -63,6 +63,7 @@ use raw::Slice as RawSlice;
 
 /// Extension methods for slices.
 #[allow(missing_docs)] // docs in libcollections
+#[doc(hidden)]
 pub trait SliceExt {
     type Item;
 
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index 5c8b6a774cd..9bc760b56ec 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -1496,6 +1496,7 @@ impl<'a, S: ?Sized> Str for &'a S where S: Str {
 
 /// Methods for string slices
 #[allow(missing_docs)]
+#[doc(hidden)]
 pub trait StrExt {
     // NB there are no docs here are they're all located on the StrExt trait in
     // libcollections, not here.