Skip to content

Commit

Permalink
Rollup merge of #89520 - GuillaumeGomez:cache-rustdoc-gui-test, r=Mar…
Browse files Browse the repository at this point in the history
…k-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 #88816)

r? ```@Mark-Simulacrum```
  • Loading branch information
matthiaskrgr authored Oct 10, 2021
2 parents 06cfd0a + d26e192 commit f1d0ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ impl Step for RustdocGUI {
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.
Expand Down

0 comments on commit f1d0ce7

Please sign in to comment.