mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +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();
|
||||
|
||||
#[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 {
|
||||
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();
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user