We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
WhichTempDir
1 parent 76729f1 commit 670ec6eCopy full SHA for 670ec6e
tests/common/which_temp.rs
@@ -16,6 +16,12 @@ pub trait WhichTempDirectory {
16
// Doing so has two drawbacks: 1. You need to clean-up the
17
// generated directory yourself, and 2. You risk race conditions with
18
// concurrent test runs.
19
+//
20
+// If you cange this to `GenerateIntoFreshTemp`, you get a fresh directory
21
+// (rooted at whatever is returned from `tempfile::tempdir()`). This reduces
22
+// race conditions (note that `cargo-bisect-rustc` still stores data in shared
23
+// locations like `~/.rustup`, so races can still arise) and allows the test
24
+// suite to clean up the directory itself.
25
pub(crate) type WhichTempDir /*: WhichTempDirectory*/ = GenerateIntoFreshTemp;
26
27
/// Using `GenerateIntoFreshTemp` yields a fresh directory in some
0 commit comments