]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/os/fd/raw.rs
Auto merge of #98614 - oli-obk:take_unsound_opaque_types, r=wesleywiser
[rust.git] / library / std / src / os / fd / raw.rs
index 7b6d2402aa9dbf840afbb8809fd115faa3021695..ff4e25b792ad03529825bb1186ff319b833e97f0 100644 (file)
@@ -73,7 +73,7 @@ pub trait FromRawFd {
     ///
     /// # Safety
     ///
-    /// The `fd` passed in must be a valid an open file descriptor.
+    /// The `fd` passed in must be a valid and open file descriptor.
     ///
     /// # Example
     ///
@@ -223,8 +223,7 @@ fn as_raw_fd(&self) -> RawFd {
     }
 }
 
-#[stable(feature = "asraw_ptrs", since = "1.63.0")]
-/// This blanket impl allows implementing custom traits that require `AsRawFd` on Arc.
+/// This impl allows implementing traits that require `AsRawFd` on Arc.
 /// ```
 /// # #[cfg(any(unix, target_os = "wasi"))] mod group_cfg {
 /// # #[cfg(target_os = "wasi")]
@@ -247,7 +246,7 @@ fn as_raw_fd(&self) -> RawFd {
     }
 }
 
-#[stable(feature = "asraw_ptrs", since = "1.63.0")]
+#[stable(feature = "asrawfd_ptrs", since = "1.63.0")]
 impl<T: AsRawFd> AsRawFd for Box<T> {
     #[inline]
     fn as_raw_fd(&self) -> RawFd {