Skip to content

Commit

Permalink
Add docs for the test crate with the std docs
Browse files Browse the repository at this point in the history
If the compiler docs aren't going to include the test crate then it may as well be included with std.
  • Loading branch information
ollie27 committed Mar 28, 2018
1 parent d87c19d commit e719bb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bootstrap/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ impl Step for Test {

fn should_run(run: ShouldRun) -> ShouldRun {
let builder = run.builder;
run.krate("test").default_condition(builder.config.compiler_docs)
run.krate("test").default_condition(builder.build.config.docs)
}

fn make_run(run: RunConfig) {
Expand Down Expand Up @@ -555,6 +555,9 @@ impl Step for Test {

let mut cargo = builder.cargo(compiler, Mode::Libtest, target, "doc");
compile::test_cargo(build, &compiler, target, &mut cargo);

cargo.arg("--no-deps").arg("-p").arg("test");

build.run(&mut cargo);
cp_r(&my_out, &out);
}
Expand Down

0 comments on commit e719bb0

Please sign in to comment.