diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2025-01-27 20:16:57 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-27 20:16:57 +0000 |
| commit | 165f2760cab192ecc3154e821ed5c85c2a90f3da (patch) | |
| tree | 9d20565d6a65710fc43aab8d8c56d061e8dbbaaa | |
| parent | cadc468b45089c8f6a3f32160cfee47d0504b6c9 (diff) | |
| parent | 3dd95e376709230f804fa503391823164588a5f5 (diff) | |
Merge pull request #19055 from vkrivopalov/fix-testdir-unused-variable-warning-on-freebsd
Add FreeBSD as a target OS for TestDir to avoid warnings
| -rw-r--r-- | src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/testdir.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/testdir.rs b/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/testdir.rs index d113bd51278..409be2894fe 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/testdir.rs +++ b/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/testdir.rs @@ -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")] |
