about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/rand.rs
diff options
context:
space:
mode:
authorMads Marquart <mads@marquart.dk>2024-04-28 18:22:37 +0200
committerMads Marquart <mads@marquart.dk>2024-04-28 18:22:37 +0200
commitd9c0eb8084deb65de69b23a7714b66efbff7eb03 (patch)
treeaac29bbed1315261cad4d77a0025225c1ee658f4 /library/std/src/sys/pal/unix/rand.rs
parentcb4940645775f60d74aee2e018d6c516c5aa9ed7 (diff)
downloadrust-d9c0eb8084deb65de69b23a7714b66efbff7eb03.tar.gz
rust-d9c0eb8084deb65de69b23a7714b66efbff7eb03.zip
Use `target_vendor = "apple"` instead of `target_os = "..."`
Diffstat (limited to 'library/std/src/sys/pal/unix/rand.rs')
-rw-r--r--library/std/src/sys/pal/unix/rand.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/library/std/src/sys/pal/unix/rand.rs b/library/std/src/sys/pal/unix/rand.rs
index de087d98eb8..d8f227b4ef4 100644
--- a/library/std/src/sys/pal/unix/rand.rs
+++ b/library/std/src/sys/pal/unix/rand.rs
@@ -12,11 +12,6 @@ pub fn hashmap_random_keys() -> (u64, u64) {
 
 #[cfg(all(
     unix,
-    not(target_os = "macos"),
-    not(target_os = "ios"),
-    not(target_os = "tvos"),
-    not(target_os = "watchos"),
-    not(target_os = "visionos"),
     not(target_os = "openbsd"),
     not(target_os = "netbsd"),
     not(target_os = "fuchsia"),
@@ -24,6 +19,7 @@ pub fn hashmap_random_keys() -> (u64, u64) {
     not(target_os = "vxworks"),
     not(target_os = "emscripten"),
     not(target_os = "vita"),
+    not(target_vendor = "apple"),
 ))]
 mod imp {
     use crate::fs::File;