Don't rebuild GUI test crates every time you run test src/test/rustdoc-gui

This commit is contained in:
Guillaume Gomez 2021-10-04 14:46:37 +02:00
parent a8387aef8c
commit d26e192edd

View File

@ -905,7 +905,7 @@ fn run(self, builder: &Builder<'_>) {
let out_dir = builder.test_out(self.target).join("rustdoc-gui");
// We remove existing folder to be sure there won't be artifacts remaining.
let _ = fs::remove_dir_all(&out_dir);
builder.clear_if_dirty(&out_dir, &builder.rustdoc(self.compiler));
let src_path = builder.build.src.join("src/test/rustdoc-gui/src");
// We generate docs for the libraries present in the rustdoc-gui's src folder.