about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2017-07-10 11:43:02 -0600
committerMark Simulacrum <mark.simulacrum@gmail.com>2017-07-10 11:43:02 -0600
commit50799265ca7f1d33d52a3f99337a4da83a190f5a (patch)
tree18b4ea3452dbb37d4ea649c9f436cef63b27e458
parentd84693b93dae3958e3504f817face0184c5c3fdd (diff)
downloadrust-50799265ca7f1d33d52a3f99337a4da83a190f5a.tar.gz
rust-50799265ca7f1d33d52a3f99337a4da83a190f5a.zip
Test src/doc once more
-rw-r--r--src/bootstrap/check.rs17
m---------src/doc/nomicon0
-rw-r--r--src/doc/unstable-book/src/language-features/compile-error.md2
-rw-r--r--src/doc/unstable-book/src/language-features/global-allocator.md2
-rw-r--r--src/doc/unstable-book/src/language-features/unsized-tuple-coercion.md2
5 files changed, 14 insertions, 9 deletions
diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs
index b3b5ae8d67d..371512908a0 100644
--- a/src/bootstrap/check.rs
+++ b/src/bootstrap/check.rs
@@ -334,15 +334,20 @@ pub fn docs(build: &Build, compiler: &Compiler) {
 
     while let Some(p) = stack.pop() {
         if p.is_dir() {
-            stack.extend(t!(p.read_dir()).map(|p| t!(p).path()).filter(|p| {
-                p.extension().and_then(|s| s.to_str()) == Some("md") &&
-                // The nostarch directory in the book is for no starch, and so isn't guaranteed to
-                // build. We don't care if it doesn't build, so skip it.
-                p.to_str().map_or(true, |p| !p.contains("nostarch"))
-            }));
+            stack.extend(t!(p.read_dir()).map(|p| t!(p).path()));
             continue
         }
 
+        if p.extension().and_then(|s| s.to_str()) != Some("md") {
+            continue;
+        }
+
+        // The nostarch directory in the book is for no starch, and so isn't
+        // guaranteed to build. We don't care if it doesn't build, so skip it.
+        if p.to_str().map_or(false, |p| p.contains("nostarch")) {
+            continue;
+        }
+
         markdown_test(build, compiler, &p);
     }
 }
diff --git a/src/doc/nomicon b/src/doc/nomicon
-Subproject c0e8c56d76bdf6bd16c64338f81c04d48c60f11
+Subproject eee5ffb12773469bc02895d6b5e7e663b3a572a
diff --git a/src/doc/unstable-book/src/language-features/compile-error.md b/src/doc/unstable-book/src/language-features/compile-error.md
index 4b24c0a6a0d..4de631e1fb3 100644
--- a/src/doc/unstable-book/src/language-features/compile-error.md
+++ b/src/doc/unstable-book/src/language-features/compile-error.md
@@ -11,7 +11,7 @@ error with the specified error message.
 
 ## Examples
 
-```rust
+```rust,compile_fail
 #![feature(compile_error)]
 
 fn main() {
diff --git a/src/doc/unstable-book/src/language-features/global-allocator.md b/src/doc/unstable-book/src/language-features/global-allocator.md
index 2eae40aef34..b3e6925b666 100644
--- a/src/doc/unstable-book/src/language-features/global-allocator.md
+++ b/src/doc/unstable-book/src/language-features/global-allocator.md
@@ -27,7 +27,7 @@ looks like:
 [RFC 1974]: https://github.com/rust-lang/rfcs/pull/1974
 
 ```rust
-#![feature(global_allocator, heap_api)]
+#![feature(global_allocator, allocator_api, heap_api)]
 
 use std::heap::{Alloc, System, Layout, AllocErr};
 
diff --git a/src/doc/unstable-book/src/language-features/unsized-tuple-coercion.md b/src/doc/unstable-book/src/language-features/unsized-tuple-coercion.md
index 200a9c19462..731d2acbfdd 100644
--- a/src/doc/unstable-book/src/language-features/unsized-tuple-coercion.md
+++ b/src/doc/unstable-book/src/language-features/unsized-tuple-coercion.md
@@ -8,7 +8,7 @@ The tracking issue for this feature is: [#42877]
 
 This is a part of [RFC0401]. According to the RFC, there should be an implementation like this:
 
-```rust
+```rust,ignore
 impl<..., T, U: ?Sized> Unsized<(..., U)> for (..., T) where T: Unsized<U> {}
 ```