diff options
| author | Oliver Middleton <olliemail27@gmail.com> | 2018-03-28 22:49:56 +0100 |
|---|---|---|
| committer | Oliver Middleton <olliemail27@gmail.com> | 2018-03-28 22:49:56 +0100 |
| commit | e719bb048e32c00fb9d9b2236a61b7a379ce4f1b (patch) | |
| tree | fac32712e25f4e2eeefe685e5cd8e1d6c0a5ca78 | |
| parent | d87c19db6df9189a2beb43e7998d0cc5548878b3 (diff) | |
| download | rust-e719bb048e32c00fb9d9b2236a61b7a379ce4f1b.tar.gz rust-e719bb048e32c00fb9d9b2236a61b7a379ce4f1b.zip | |
Add docs for the test crate with the std docs
If the compiler docs aren't going to include the test crate then it may as well be included with std.
| -rw-r--r-- | src/bootstrap/doc.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index 44073a5b075..db79c68bfce 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -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) { @@ -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); } |
