about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-11-08 09:59:46 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-11-08 13:49:48 -0800
commit860c6ab3c19000c403584a5bf21e482b5efeab6d (patch)
treeadfc50815d76e81bbfa6ce5f2deeb0938a703e57 /src/bootstrap
parent38a959a543dfc70a67e64f7d369ed6c9e12fc806 (diff)
downloadrust-860c6ab3c19000c403584a5bf21e482b5efeab6d.tar.gz
rust-860c6ab3c19000c403584a5bf21e482b5efeab6d.zip
rustbuild: Fix check-error-index step
If it ran too soon there wasn't a `test` directory lying around but we'll need
one!
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/check.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs
index 611630c5730..f27f9641036 100644
--- a/src/bootstrap/check.rs
+++ b/src/bootstrap/check.rs
@@ -242,7 +242,9 @@ pub fn docs(build: &Build, compiler: &Compiler) {
 pub fn error_index(build: &Build, compiler: &Compiler) {
     println!("Testing error-index stage{}", compiler.stage);
 
-    let output = testdir(build, compiler.host).join("error-index.md");
+    let dir = testdir(build, compiler.host);
+    t!(fs::create_dir_all(&dir));
+    let output = dir.join("error-index.md");
     build.run(build.tool_cmd(compiler, "error_index_generator")
                    .arg("markdown")
                    .arg(&output)