File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,13 @@ pub trait WhichTempDirectory {
16
16
// Doing so has two drawbacks: 1. You need to clean-up the
17
17
// generated directory yourself, and 2. You risk race conditions with
18
18
// concurrent test runs.
19
- pub ( crate ) type WhichTempDir /*: WhichTempDirectory*/ = GenerateIntoFreshTemp ;
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*/ = GenerateIntoSlashTemp ;
20
26
21
27
/// Using `GenerateIntoFreshTemp` yields a fresh directory in some
22
28
/// system-dependent temporary space. This fresh directory will be autoamtically
You can’t perform that action at this time.
0 commit comments