Rollup merge of #99523 - cuviper:asfd_ptrs-1.64, r=jyn514

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.
This commit is contained in:
Matthias Krüger 2022-07-21 18:42:05 +02:00 committed by GitHub
commit 84a7b23fd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -356,7 +356,7 @@ impl From<OwnedFd> for crate::net::UdpSocket {
}
}
#[stable(feature = "io_safety", since = "1.63.0")]
#[stable(feature = "asfd_ptrs", since = "1.64.0")]
/// This impl allows implementing traits that require `AsFd` on Arc.
/// ```
/// # #[cfg(any(unix, target_os = "wasi"))] mod group_cfg {
@ -379,7 +379,7 @@ impl<T: AsFd> AsFd for crate::sync::Arc<T> {
}
}
#[stable(feature = "io_safety", since = "1.63.0")]
#[stable(feature = "asfd_ptrs", since = "1.64.0")]
impl<T: AsFd> AsFd for Box<T> {
#[inline]
fn as_fd(&self) -> BorrowedFd<'_> {