From 860c6ab3c19000c403584a5bf21e482b5efeab6d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 8 Nov 2016 09:59:46 -0800 Subject: [PATCH] rustbuild: Fix check-error-index step If it ran too soon there wasn't a `test` directory lying around but we'll need one! --- src/bootstrap/check.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs index 611630c5730f9..f27f9641036c7 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)