mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Merge pull request #19055 from vkrivopalov/fix-testdir-unused-variable-warning-on-freebsd
Add FreeBSD as a target OS for TestDir to avoid warnings
This commit is contained in:
commit
a995319633
@ -43,10 +43,15 @@ impl TestDir {
|
|||||||
}
|
}
|
||||||
fs::create_dir_all(&path).unwrap();
|
fs::create_dir_all(&path).unwrap();
|
||||||
|
|
||||||
#[cfg(any(target_os = "macos", target_os = "linux", target_os = "windows"))]
|
#[cfg(any(
|
||||||
|
target_os = "macos",
|
||||||
|
target_os = "linux",
|
||||||
|
target_os = "windows",
|
||||||
|
target_os = "freebsd"
|
||||||
|
))]
|
||||||
if symlink {
|
if symlink {
|
||||||
let symlink_path = base.join(format!("{pid}_{cnt}_symlink"));
|
let symlink_path = base.join(format!("{pid}_{cnt}_symlink"));
|
||||||
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
#[cfg(any(target_os = "macos", target_os = "linux", target_os = "freebsd"))]
|
||||||
std::os::unix::fs::symlink(path, &symlink_path).unwrap();
|
std::os::unix::fs::symlink(path, &symlink_path).unwrap();
|
||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user