Skip to content

Commit e719bb0

Browse files
committed
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.
1 parent d87c19d commit e719bb0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/doc.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ impl Step for Test {
512512

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

518518
fn make_run(run: RunConfig) {
@@ -555,6 +555,9 @@ impl Step for Test {
555555

556556
let mut cargo = builder.cargo(compiler, Mode::Libtest, target, "doc");
557557
compile::test_cargo(build, &compiler, target, &mut cargo);
558+
559+
cargo.arg("--no-deps").arg("-p").arg("test");
560+
558561
build.run(&mut cargo);
559562
cp_r(&my_out, &out);
560563
}

0 commit comments

Comments
 (0)