Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/rust-analyzer/src/test_runner.rs')
-rw-r--r--crates/rust-analyzer/src/test_runner.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/test_runner.rs b/crates/rust-analyzer/src/test_runner.rs
index 2fd5254733..503b3ee43a 100644
--- a/crates/rust-analyzer/src/test_runner.rs
+++ b/crates/rust-analyzer/src/test_runner.rs
@@ -1,8 +1,6 @@
//! This module provides the functionality needed to run `cargo test` in a background
//! thread and report the result of each test in a channel.
-use std::process::Command;
-
use crossbeam_channel::Sender;
use paths::AbsPath;
use serde::Deserialize as _;
@@ -78,7 +76,7 @@ impl CargoTestHandle {
test_target: TestTarget,
sender: Sender<CargoTestMessage>,
) -> std::io::Result<Self> {
- let mut cmd = Command::new(Tool::Cargo.path());
+ let mut cmd = toolchain::command(Tool::Cargo.path(), root);
cmd.env("RUSTC_BOOTSTRAP", "1");
cmd.arg("test");