Skip to content

Commit bd0474d

Browse files
committed
Fix the stable version of AsFd for Arc<T> and Box<T>
These merged in #97437 for 1.64.0, apart from the main `io_safety` feature that stabilized in 1.63.0.
1 parent 14dbfeb commit bd0474d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/os/fd/owned.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ impl From<OwnedFd> for crate::net::UdpSocket {
356356
}
357357
}
358358

359-
#[stable(feature = "io_safety", since = "1.63.0")]
359+
#[stable(feature = "asfd_ptrs", since = "1.64.0")]
360360
/// This impl allows implementing traits that require `AsFd` on Arc.
361361
/// ```
362362
/// # #[cfg(any(unix, target_os = "wasi"))] mod group_cfg {
@@ -379,7 +379,7 @@ impl<T: AsFd> AsFd for crate::sync::Arc<T> {
379379
}
380380
}
381381

382-
#[stable(feature = "io_safety", since = "1.63.0")]
382+
#[stable(feature = "asfd_ptrs", since = "1.64.0")]
383383
impl<T: AsFd> AsFd for Box<T> {
384384
#[inline]
385385
fn as_fd(&self) -> BorrowedFd<'_> {

0 commit comments

Comments
 (0)