diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-10-10 18:22:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-10 18:22:20 +0200 |
| commit | f1d0ce70b6fec227123443416c61d6061202f731 (patch) | |
| tree | 4b1c1fcd01042757dd94137fad28d1539fb7066d /src | |
| parent | 06cfd0af48d5e32a8b88c50c65bf46518d217e4e (diff) | |
| parent | d26e192edd6dadd7bfb2a582933d20422d2cd862 (diff) | |
| download | rust-f1d0ce70b6fec227123443416c61d6061202f731.tar.gz rust-f1d0ce70b6fec227123443416c61d6061202f731.zip | |
Rollup merge of #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 https://github.com/rust-lang/rust/pull/88816) r? ```@Mark-Simulacrum```
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 68fbbb22c08..8594fa42266 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -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. |
