Rollup merge of #64613 - alexcrichton:less-doc-copies, r=Mark-Simulacrum

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.
This commit is contained in:
Mazdak Farrokhzad 2019-09-19 18:31:44 +02:00 committed by GitHub
commit 99cbffb15f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -476,11 +476,11 @@ impl Step for Std {
.arg("--index-page").arg(&builder.src.join("src/doc/index.md"));
builder.run(&mut cargo);
builder.cp_r(&my_out, &out);
};
for krate in &["alloc", "core", "std", "proc_macro", "test"] {
run_cargo_rustdoc_for(krate);
}
builder.cp_r(&my_out, &out);
}
}