@@ -133,7 +133,7 @@ impl SocketAddr {
133
133
/// ```
134
134
#[ stable( feature = "ip_addr" , since = "1.7.0" ) ]
135
135
#[ must_use]
136
- #[ rustc_const_unstable ( feature = "const_socketaddr" , issue = "82485 " ) ]
136
+ #[ rustc_const_stable ( feature = "const_socketaddr" , since = "CURRENT_RUSTC_VERSION " ) ]
137
137
pub const fn new ( ip : IpAddr , port : u16 ) -> SocketAddr {
138
138
match ip {
139
139
IpAddr :: V4 ( a) => SocketAddr :: V4 ( SocketAddrV4 :: new ( a, port) ) ,
@@ -153,7 +153,7 @@ impl SocketAddr {
153
153
/// ```
154
154
#[ must_use]
155
155
#[ stable( feature = "ip_addr" , since = "1.7.0" ) ]
156
- #[ rustc_const_unstable ( feature = "const_socketaddr" , issue = "82485 " ) ]
156
+ #[ rustc_const_stable ( feature = "const_socketaddr" , since = "CURRENT_RUSTC_VERSION " ) ]
157
157
pub const fn ip ( & self ) -> IpAddr {
158
158
match * self {
159
159
SocketAddr :: V4 ( ref a) => IpAddr :: V4 ( * a. ip ( ) ) ,
@@ -194,7 +194,7 @@ impl SocketAddr {
194
194
/// ```
195
195
#[ must_use]
196
196
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
197
- #[ rustc_const_unstable ( feature = "const_socketaddr" , issue = "82485 " ) ]
197
+ #[ rustc_const_stable ( feature = "const_socketaddr" , since = "CURRENT_RUSTC_VERSION " ) ]
198
198
pub const fn port ( & self ) -> u16 {
199
199
match * self {
200
200
SocketAddr :: V4 ( ref a) => a. port ( ) ,
@@ -238,7 +238,7 @@ impl SocketAddr {
238
238
/// ```
239
239
#[ must_use]
240
240
#[ stable( feature = "sockaddr_checker" , since = "1.16.0" ) ]
241
- #[ rustc_const_unstable ( feature = "const_socketaddr" , issue = "82485 " ) ]
241
+ #[ rustc_const_stable ( feature = "const_socketaddr" , since = "CURRENT_RUSTC_VERSION " ) ]
242
242
pub const fn is_ipv4 ( & self ) -> bool {
243
243
matches ! ( * self , SocketAddr :: V4 ( _) )
244
244
}
@@ -260,7 +260,7 @@ impl SocketAddr {
260
260
/// ```
261
261
#[ must_use]
262
262
#[ stable( feature = "sockaddr_checker" , since = "1.16.0" ) ]
263
- #[ rustc_const_unstable ( feature = "const_socketaddr" , issue = "82485 " ) ]
263
+ #[ rustc_const_stable ( feature = "const_socketaddr" , since = "CURRENT_RUSTC_VERSION " ) ]
264
264
pub const fn is_ipv6 ( & self ) -> bool {
265
265
matches ! ( * self , SocketAddr :: V6 ( _) )
266
266
}
@@ -280,7 +280,7 @@ impl SocketAddrV4 {
280
280
/// ```
281
281
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
282
282
#[ must_use]
283
- #[ rustc_const_unstable ( feature = "const_socketaddr" , issue = "82485 " ) ]
283
+ #[ rustc_const_stable ( feature = "const_socketaddr" , since = "CURRENT_RUSTC_VERSION " ) ]
284
284
pub const fn new ( ip : Ipv4Addr , port : u16 ) -> SocketAddrV4 {
285
285
SocketAddrV4 { ip, port }
286
286
}
@@ -297,7 +297,7 @@ impl SocketAddrV4 {
297
297
/// ```
298
298
#[ must_use]
299
299
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
300
- #[ rustc_const_unstable ( feature = "const_socketaddr" , issue = "82485 " ) ]
300
+ #[ rustc_const_stable ( feature = "const_socketaddr" , since = "CURRENT_RUSTC_VERSION " ) ]
301
301
pub const fn ip ( & self ) -> & Ipv4Addr {
302
302
& self . ip
303
303
}
@@ -330,7 +330,7 @@ impl SocketAddrV4 {
330
330
/// ```
331
331
#[ must_use]
332
332
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
333
- #[ rustc_const_unstable ( feature = "const_socketaddr" , issue = "82485 " ) ]
333
+ #[ rustc_const_stable ( feature = "const_socketaddr" , since = "CURRENT_RUSTC_VERSION " ) ]
334
334
pub const fn port ( & self ) -> u16 {
335
335
self . port
336
336
}
@@ -371,7 +371,7 @@ impl SocketAddrV6 {
371
371
/// ```
372
372
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
373
373
#[ must_use]
374
- #[ rustc_const_unstable ( feature = "const_socketaddr" , issue = "82485 " ) ]
374
+ #[ rustc_const_stable ( feature = "const_socketaddr" , since = "CURRENT_RUSTC_VERSION " ) ]
375
375
pub const fn new ( ip : Ipv6Addr , port : u16 , flowinfo : u32 , scope_id : u32 ) -> SocketAddrV6 {
376
376
SocketAddrV6 { ip, port, flowinfo, scope_id }
377
377
}
@@ -388,7 +388,7 @@ impl SocketAddrV6 {
388
388
/// ```
389
389
#[ must_use]
390
390
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
391
- #[ rustc_const_unstable ( feature = "const_socketaddr" , issue = "82485 " ) ]
391
+ #[ rustc_const_stable ( feature = "const_socketaddr" , since = "CURRENT_RUSTC_VERSION " ) ]
392
392
pub const fn ip ( & self ) -> & Ipv6Addr {
393
393
& self . ip
394
394
}
@@ -421,7 +421,7 @@ impl SocketAddrV6 {
421
421
/// ```
422
422
#[ must_use]
423
423
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
424
- #[ rustc_const_unstable ( feature = "const_socketaddr" , issue = "82485 " ) ]
424
+ #[ rustc_const_stable ( feature = "const_socketaddr" , since = "CURRENT_RUSTC_VERSION " ) ]
425
425
pub const fn port ( & self ) -> u16 {
426
426
self . port
427
427
}
@@ -464,7 +464,7 @@ impl SocketAddrV6 {
464
464
/// ```
465
465
#[ must_use]
466
466
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
467
- #[ rustc_const_unstable ( feature = "const_socketaddr" , issue = "82485 " ) ]
467
+ #[ rustc_const_stable ( feature = "const_socketaddr" , since = "CURRENT_RUSTC_VERSION " ) ]
468
468
pub const fn flowinfo ( & self ) -> u32 {
469
469
self . flowinfo
470
470
}
@@ -504,7 +504,7 @@ impl SocketAddrV6 {
504
504
/// ```
505
505
#[ must_use]
506
506
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
507
- #[ rustc_const_unstable ( feature = "const_socketaddr" , issue = "82485 " ) ]
507
+ #[ rustc_const_stable ( feature = "const_socketaddr" , since = "CURRENT_RUSTC_VERSION " ) ]
508
508
pub const fn scope_id ( & self ) -> u32 {
509
509
self . scope_id
510
510
}
0 commit comments