forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#125935 - madsmtm:merge-os-apple, r=workingjub…
…ilee Merge Apple `std::os` extensions modules into `std::os::darwin` The functionality available on Apple platforms are very similar, and were (basically) duplicated for each platform. This PR rectifies that by merging the code into one module. Ultimately, I've done this to fix `./x build library --target=aarch64-apple-tvos,aarch64-apple-watchos,aarch64-apple-visionos`, as that currently fails because of dead code warnings. Publically exposing these to tvOS/watchOS/visionOS targets is considered in rust-lang#123723, but that seems to be dragging out, and in any case I think it makes sense to do the refactor separately from stabilization. r? libs Fixes rust-lang#121640 and rust-lang#124825.
- Loading branch information
Showing
16 changed files
with
86 additions
and
797 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//! Platform-specific extensions to `std` for Darwin / Apple platforms. | ||
//! | ||
//! This is available on the following operating systems: | ||
//! - macOS | ||
//! - iOS | ||
//! - tvOS | ||
//! - watchOS | ||
//! - visionOS | ||
//! | ||
//! Note: This module is called "Darwin" as that's the name of the underlying | ||
//! core OS of the above operating systems, but it should not be confused with | ||
//! the `-darwin` suffix in the `x86_64-apple-darwin` and | ||
//! `aarch64-apple-darwin` target names, which are mostly named that way for | ||
//! legacy reasons. | ||
pub(crate) mod fs; | ||
// deprecated, but used for public reexport under `std::os::unix::raw`, as | ||
// well as `std::os::macos`/`std::os::ios`, because those modules precede the | ||
// decision to remove these. | ||
pub(super) mod raw; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.