Skip to content

Commit 5190e4a

Browse files
authored
Rollup merge of rust-lang#89520 - GuillaumeGomez:cache-rustdoc-gui-test, r=Mark-Simulacrum
Don't rebuild GUI test crates every time you run test src/test/rustdoc-gui This method has multiple advantages: * It'll completely remove the rustdoc-GUI test doc folder if rustdoc was updated * It'll rebuild GUI test crates only they have been updated All in all, it's quite convenient! (even more with rust-lang#88816) r? `@Mark-Simulacrum`
2 parents 29fc7bd + d26e192 commit 5190e4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/bootstrap/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ impl Step for RustdocGUI {
898898
let out_dir = builder.test_out(self.target).join("rustdoc-gui");
899899

900900
// We remove existing folder to be sure there won't be artifacts remaining.
901-
let _ = fs::remove_dir_all(&out_dir);
901+
builder.clear_if_dirty(&out_dir, &builder.rustdoc(self.compiler));
902902

903903
let src_path = builder.build.src.join("src/test/rustdoc-gui/src");
904904
// We generate docs for the libraries present in the rustdoc-gui's src folder.

0 commit comments

Comments
 (0)