Skip to content

Commit

Permalink
Fix the stability attributes for std::os::fd.
Browse files Browse the repository at this point in the history
As @bjorn3 pointed out [here], I used the wrong stability attribute in #98368
when making `std::os::fd` public. I set it to Rust 1.63, which was when
io-safety was stabilized, but it should be Rust 1.66, which was when
`std::os::fd` was stabilized.

[here]: rust-lang/rust#98368 (comment)
  • Loading branch information
sunfishcode committed Jan 14, 2023
1 parent c423b6d commit c360ede
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/src/os/fd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! This module is supported on Unix platforms and WASI, which both use a
//! similar file descriptor system for referencing OS resources.

#![stable(feature = "io_safety", since = "1.63.0")]
#![stable(feature = "os_fd", since = "1.66.0")]
#![deny(unsafe_op_in_unsafe_fn)]

// `RawFd`, `AsRawFd`, etc.
Expand All @@ -19,7 +19,7 @@ mod net;
mod tests;

// Export the types and traits for the public API.
#[unstable(feature = "os_fd", issue = "98699")]
#[stable(feature = "os_fd", since = "1.66.0")]
pub use owned::*;
#[unstable(feature = "os_fd", issue = "98699")]
#[stable(feature = "os_fd", since = "1.66.0")]
pub use raw::*;

0 comments on commit c360ede

Please sign in to comment.