Skip to content

Commit 4af8acd

Browse files
authored
Rollup merge of rust-lang#44563 - budziq:stablilize_tcpstream_connect_timeout, r=alexcrichton
stabilize tcpstream_connect_timeout (closes rust-lang#43079)
2 parents 19ad12a + 199cb82 commit 4af8acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/net/tcp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl TcpStream {
167167
/// connection request.
168168
///
169169
/// [`SocketAddr`]: ../../std/net/enum.SocketAddr.html
170-
#[unstable(feature = "tcpstream_connect_timeout", issue = "43079")]
170+
#[stable(feature = "tcpstream_connect_timeout", since = "1.22.0")]
171171
pub fn connect_timeout(addr: &SocketAddr, timeout: Duration) -> io::Result<TcpStream> {
172172
net_imp::TcpStream::connect_timeout(addr, timeout).map(TcpStream)
173173
}

0 commit comments

Comments
 (0)