Skip to content

Commit 37e62fa

Browse files
authoredJul 20, 2022
Rollup merge of rust-lang#99523 - cuviper:asfd_ptrs-1.64, r=jyn514
Fix the stable version of `AsFd for Arc<T>` and `Box<T>` These merged in rust-lang#97437 for 1.64.0, apart from the main `io_safety` feature that stabilized in 1.63.0.
2 parents 714a3fd + bd0474d commit 37e62fa

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)