Rollup merge of #52627 - Mark-Simulacrum:rustdoc-test-correct, r=alexcrichton

Compile rustc before building tests for rustdoc

r? @alexcrichton
This commit is contained in:
kennytm 2018-07-24 09:49:55 +08:00 committed by GitHub
commit 4084f0ee8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1732,6 +1732,7 @@ impl Step for CrateRustdoc {
let compiler = builder.compiler(builder.top_stage, self.host);
let target = compiler.host;
builder.ensure(compile::Rustc { compiler, target });
let mut cargo = tool::prepare_tool_cargo(builder,
compiler,