rust/library
bors 2e88e9e7d0 Auto merge of #124491 - madsmtm:target_vendor-apple, r=workingjubilee
Use `target_vendor = "apple"` instead of `target_os = "..."`

Use `target_vendor = "apple"` instead of `all(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos", target_os = "visionos")`.

The apple targets are quite close to being identical, with iOS, tvOS, watchOS and visionOS being even closer, so using `target_vendor` when possible makes it clearer when something is actually OS-specific, or just Apple-specific.
Note that `target_vendor` will [be deprecated in the future](https://github.com/rust-lang/rust/issues/100343), but not before an alternative (like `target_family = "apple"`) is available.

While doing this, I found various inconsistencies and small mistakes in the standard library, see the commits for details. Will follow-up with an extra PR for a similar issue that need a bit more discussion. EDIT: https://github.com/rust-lang/rust/pull/124494

Since you've talked about using `target_vendor = "apple"` in the past:
r? workingjubilee

CC `@simlay,` `@thomcc`
`@rustbot` label O-macos O-ios O-tvos O-watchos O-visionos
2024-05-01 02:11:29 +00:00
..
alloc Stabilize non_null_convenience 2024-04-28 16:19:53 -05:00
backtrace@e151306182 Update backtrace submodule 2024-04-12 16:28:19 -07:00
core Auto merge of #124491 - madsmtm:target_vendor-apple, r=workingjubilee 2024-05-01 02:11:29 +00:00
panic_abort Add support for Arm64EC to the Standard Library 2024-04-15 16:05:16 -07:00
panic_unwind Replace libc::c_int with core::ffi::c_int 2024-04-14 07:11:51 +00:00
portable-simd Stabilise inline_const 2024-04-24 13:12:25 +01:00
proc_macro Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
profiler_builtins
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Auto merge of #124491 - madsmtm:target_vendor-apple, r=workingjubilee 2024-05-01 02:11:29 +00:00
stdarch@c0257c1660 Update stdarch submodule 2024-04-21 21:35:17 -04:00
sysroot
test Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
unwind Replace libc::c_int with core::ffi::c_int 2024-04-14 07:11:51 +00:00