diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-07-10 11:43:02 -0600 |
|---|---|---|
| committer | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-07-10 11:43:02 -0600 |
| commit | 50799265ca7f1d33d52a3f99337a4da83a190f5a (patch) | |
| tree | 18b4ea3452dbb37d4ea649c9f436cef63b27e458 /src/bootstrap | |
| parent | d84693b93dae3958e3504f817face0184c5c3fdd (diff) | |
| download | rust-50799265ca7f1d33d52a3f99337a4da83a190f5a.tar.gz rust-50799265ca7f1d33d52a3f99337a4da83a190f5a.zip | |
Test src/doc once more
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/check.rs | 17 |
1 files changed, 11 insertions, 6 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); } } |
