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.
Mark
std::os::wasi::io::AsFd
etc. as stable.
io_safety was stabilized in Rust 1.63, so mark the io_safety exports in `std::os::wasi::io` as stable. Fixes rust-lang#103306.
- Loading branch information
1 parent
a258a54
commit 002ce8c
Showing
3 changed files
with
7 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
//! Owned and borrowed file descriptors. | ||
|
||
#![unstable(feature = "wasi_ext", issue = "71213")] | ||
#![stable(feature = "io_safety_wasi", since = "1.65.0")] | ||
|
||
// Tests for this module | ||
#[cfg(test)] | ||
mod tests; | ||
|
||
#[stable(feature = "io_safety_wasi", since = "1.65.0")] | ||
pub use crate::os::fd::owned::*; |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
//! WASI-specific extensions to general I/O primitives. | ||
|
||
#![deny(unsafe_op_in_unsafe_fn)] | ||
#![unstable(feature = "wasi_ext", issue = "71213")] | ||
#![stable(feature = "io_safety_wasi", since = "1.65.0")] | ||
|
||
mod fd; | ||
mod raw; | ||
|
||
#[unstable(feature = "wasi_ext", issue = "71213")] | ||
#[stable(feature = "io_safety_wasi", since = "1.65.0")] | ||
pub use fd::*; | ||
#[unstable(feature = "wasi_ext", issue = "71213")] | ||
#[stable(feature = "io_safety_wasi", since = "1.65.0")] | ||
pub use 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,6 @@ | ||
//! WASI-specific extensions to general I/O primitives. | ||
|
||
#![unstable(feature = "wasi_ext", issue = "71213")] | ||
#![stable(feature = "io_safety_wasi", since = "1.65.0")] | ||
|
||
// NOTE: despite the fact that this module is unstable, | ||
// stable Rust had the capability to access the stable | ||
// re-exported items from os::fd::raw through this | ||
// unstable module. | ||
// In PR #95956 the stability checker was changed to check | ||
// all path segments of an item rather than just the last, | ||
// which caused the aforementioned stable usage to regress | ||
// (see issue #99502). | ||
// As a result, the items in os::fd::raw were given the | ||
// rustc_allowed_through_unstable_modules attribute. | ||
// No regression tests were added to ensure this property, | ||
// as CI is not configured to test wasm32-wasi. | ||
// If this module is stabilized, | ||
// you may want to remove those attributes | ||
// (assuming no other unstable modules need them). | ||
#[stable(feature = "io_safety_wasi", since = "1.65.0")] | ||
pub use crate::os::fd::raw::*; |