We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43fb956 commit fbae83aCopy full SHA for fbae83a
crates/flycheck/src/lib.rs
@@ -295,7 +295,9 @@ impl FlycheckActor {
295
} => {
296
let mut cmd = Command::new(toolchain::cargo());
297
cmd.arg(command);
298
- cmd.args(&["--workspace", "--message-format=json"]);
+ cmd.current_dir(&self.root);
299
+ cmd.args(&["--workspace", "--message-format=json", "--manifest-path"])
300
+ .arg(self.root.join("Cargo.toml").as_os_str());
301
302
if let Some(target) = target_triple {
303
cmd.args(&["--target", target.as_str()]);
0 commit comments