Skip to content

Commit 15eb465

Browse files
committed
Rollup merge of rust-lang#49465 - ollie27:rustbuild_test_docs, r=steveklabnik,QuietMisdreavus,frewsxcv,GuillaumeGomez
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. Fixes rust-lang#49388
2 parents c22b4db + e719bb0 commit 15eb465

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/doc.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ impl Step for Test {
514514

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

520520
fn make_run(run: RunConfig) {
@@ -557,6 +557,9 @@ impl Step for Test {
557557

558558
let mut cargo = builder.cargo(compiler, Mode::Libtest, target, "doc");
559559
compile::test_cargo(build, &compiler, target, &mut cargo);
560+
561+
cargo.arg("--no-deps").arg("-p").arg("test");
562+
560563
build.run(&mut cargo);
561564
build.cp_r(&my_out, &out);
562565
}

0 commit comments

Comments
 (0)