forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge Apple
std::os
extensions modules into std::os::darwin
The functionality available on Apple platforms are very similar, and were duplicated for each platform. Additionally, this fixes a warning when compiling the standard library for tvOS, watchOS and visionOS by marking the corresponding code as dead code.
- 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.