Skip to content

Commit d7f6474

Browse files
committed
rustbuild: Copy crate doc files fewer times
Previously when building documentation for the standard library we'd copy all the files 5 times, and these files include libcore/libstd docs which are huge! This commit instead only copies the files after rustdoc has been run for each crate, reducing the number of redundant copies we're making.
1 parent 9b9d2af commit d7f6474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,11 +476,11 @@ impl Step for Std {
476476
.arg("--index-page").arg(&builder.src.join("src/doc/index.md"));
477477

478478
builder.run(&mut cargo);
479-
builder.cp_r(&my_out, &out);
480479
};
481480
for krate in &["alloc", "core", "std", "proc_macro", "test"] {
482481
run_cargo_rustdoc_for(krate);
483482
}
483+
builder.cp_r(&my_out, &out);
484484
}
485485
}
486486

0 commit comments

Comments
 (0)