Skip to content

Commit a344d10

Browse files
committed
Assign issue number to the new const_socketaddr
1 parent 230441e commit a344d10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/net/addr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl SocketAddr {
131131
/// ```
132132
#[stable(feature = "ip_addr", since = "1.7.0")]
133133
#[must_use]
134-
#[rustc_const_unstable(feature = "const_socketaddr", issue = "none")]
134+
#[rustc_const_unstable(feature = "const_socketaddr", issue = "82485")]
135135
pub const fn new(ip: IpAddr, port: u16) -> SocketAddr {
136136
match ip {
137137
IpAddr::V4(a) => SocketAddr::V4(SocketAddrV4::new(a, port)),
@@ -278,7 +278,7 @@ impl SocketAddrV4 {
278278
/// ```
279279
#[stable(feature = "rust1", since = "1.0.0")]
280280
#[must_use]
281-
#[rustc_const_unstable(feature = "const_socketaddr", issue = "none")]
281+
#[rustc_const_unstable(feature = "const_socketaddr", issue = "82485")]
282282
pub const fn new(ip: Ipv4Addr, port: u16) -> SocketAddrV4 {
283283
SocketAddrV4 { ip, port }
284284
}
@@ -369,7 +369,7 @@ impl SocketAddrV6 {
369369
/// ```
370370
#[stable(feature = "rust1", since = "1.0.0")]
371371
#[must_use]
372-
#[rustc_const_unstable(feature = "const_socketaddr", issue = "none")]
372+
#[rustc_const_unstable(feature = "const_socketaddr", issue = "82485")]
373373
pub const fn new(ip: Ipv6Addr, port: u16, flowinfo: u32, scope_id: u32) -> SocketAddrV6 {
374374
SocketAddrV6 { ip, port, flowinfo, scope_id }
375375
}

0 commit comments

Comments
 (0)