From a84e77bebff4b3a0ab30108d720b47ddb6d027df Mon Sep 17 00:00:00 2001 From: Thomas de Zeeuw Date: Fri, 25 Feb 2022 13:04:40 +0100 Subject: [PATCH] Stabilize unix_socket_creation --- library/std/src/os/unix/net/addr.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/std/src/os/unix/net/addr.rs b/library/std/src/os/unix/net/addr.rs index 62bf4b6e862..03d59d77311 100644 --- a/library/std/src/os/unix/net/addr.rs +++ b/library/std/src/os/unix/net/addr.rs @@ -140,7 +140,6 @@ pub(super) fn from_parts( /// # Examples /// /// ``` - /// #![feature(unix_socket_creation)] /// use std::os::unix::net::SocketAddr; /// use std::path::Path; /// @@ -154,12 +153,11 @@ pub(super) fn from_parts( /// Creating a `SocketAddr` with a NULL byte results in an error. /// /// ``` - /// #![feature(unix_socket_creation)] /// use std::os::unix::net::SocketAddr; /// /// assert!(SocketAddr::from_pathname("/path/with/\0/bytes").is_err()); /// ``` - #[unstable(feature = "unix_socket_creation", issue = "93423")] + #[stable(feature = "unix_socket_creation", since = "1.61.0")] pub fn from_pathname

(path: P) -> io::Result where P: AsRef,