Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #22562 from ferrous-systems/hoverbear/create-dir-for-cargo-xtask-metrics-rustc_tests
Create directory for `cargo xtask metrics rustc_tests`
| -rw-r--r-- | crates/rust-analyzer/src/cli/rustc_tests.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/cli/rustc_tests.rs b/crates/rust-analyzer/src/cli/rustc_tests.rs index 49f28352b6..69405b421e 100644 --- a/crates/rust-analyzer/src/cli/rustc_tests.rs +++ b/crates/rust-analyzer/src/cli/rustc_tests.rs @@ -64,6 +64,7 @@ impl Tester { fn new() -> Result<Self> { let mut path = AbsPathBuf::assert_utf8(std::env::temp_dir()); path.push("ra-rustc-test"); + std::fs::create_dir_all(&path)?; let tmp_file = path.join("ra-rustc-test.rs"); std::fs::write(&tmp_file, "")?; let cargo_config = CargoConfig { |