Merge pull request #20835 from ShoyuVanilla/ra-ra

minor: Fix creating `rust-analyzer/rust-analyzer` under target-dir
This commit is contained in:
Chayim Refael Friedman 2025-10-14 15:53:39 +00:00 committed by GitHub
commit 562e0890c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ use cargo_metadata::PackageId;
use crossbeam_channel::{Receiver, Sender, select_biased, unbounded};
use ide_db::FxHashSet;
use itertools::Itertools;
use paths::{AbsPath, AbsPathBuf, Utf8PathBuf};
use paths::{AbsPath, AbsPathBuf, Utf8Path, Utf8PathBuf};
use rustc_hash::FxHashMap;
use serde::Deserialize as _;
use serde_derive::Deserialize;
@ -432,8 +432,10 @@ impl FlycheckActor {
options
.target_dir
.as_deref()
.unwrap_or("target".as_ref())
.join(format!("rust-analyzer/flycheck{}", self.id)),
.unwrap_or(
Utf8Path::new("target").join("rust-analyzer").as_path(),
)
.join(format!("flycheck{}", self.id)),
),
_ => None,
},