Skip to content

Commit 002ce8c

Browse files
sunfishcodeMark-Simulacrum
authored andcommitted
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 #103306.
1 parent a258a54 commit 002ce8c

File tree

3 files changed

+7
-20
lines changed

3 files changed

+7
-20
lines changed

library/std/src/os/wasi/io/fd.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
//! Owned and borrowed file descriptors.
22
3-
#![unstable(feature = "wasi_ext", issue = "71213")]
3+
#![stable(feature = "io_safety_wasi", since = "1.65.0")]
44

55
// Tests for this module
66
#[cfg(test)]
77
mod tests;
88

9+
#[stable(feature = "io_safety_wasi", since = "1.65.0")]
910
pub use crate::os::fd::owned::*;

library/std/src/os/wasi/io/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//! WASI-specific extensions to general I/O primitives.
22
33
#![deny(unsafe_op_in_unsafe_fn)]
4-
#![unstable(feature = "wasi_ext", issue = "71213")]
4+
#![stable(feature = "io_safety_wasi", since = "1.65.0")]
55

66
mod fd;
77
mod raw;
88

9-
#[unstable(feature = "wasi_ext", issue = "71213")]
9+
#[stable(feature = "io_safety_wasi", since = "1.65.0")]
1010
pub use fd::*;
11-
#[unstable(feature = "wasi_ext", issue = "71213")]
11+
#[stable(feature = "io_safety_wasi", since = "1.65.0")]
1212
pub use raw::*;

library/std/src/os/wasi/io/raw.rs

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
//! WASI-specific extensions to general I/O primitives.
22
3-
#![unstable(feature = "wasi_ext", issue = "71213")]
3+
#![stable(feature = "io_safety_wasi", since = "1.65.0")]
44

5-
// NOTE: despite the fact that this module is unstable,
6-
// stable Rust had the capability to access the stable
7-
// re-exported items from os::fd::raw through this
8-
// unstable module.
9-
// In PR #95956 the stability checker was changed to check
10-
// all path segments of an item rather than just the last,
11-
// which caused the aforementioned stable usage to regress
12-
// (see issue #99502).
13-
// As a result, the items in os::fd::raw were given the
14-
// rustc_allowed_through_unstable_modules attribute.
15-
// No regression tests were added to ensure this property,
16-
// as CI is not configured to test wasm32-wasi.
17-
// If this module is stabilized,
18-
// you may want to remove those attributes
19-
// (assuming no other unstable modules need them).
5+
#[stable(feature = "io_safety_wasi", since = "1.65.0")]
206
pub use crate::os::fd::raw::*;

0 commit comments

Comments
 (0)