@@ -200,7 +200,7 @@ impl SocketAddr {
200
200
/// ```
201
201
#[ inline]
202
202
#[ stable( feature = "sockaddr_setters" , since = "1.9.0" ) ]
203
- #[ rustc_const_unstable ( feature = "const_sockaddr_setters" , issue = "131714 " ) ]
203
+ #[ rustc_const_stable ( feature = "const_sockaddr_setters" , since = "CURRENT_RUSTC_VERSION " ) ]
204
204
pub const fn set_ip ( & mut self , new_ip : IpAddr ) {
205
205
// `match (*self, new_ip)` would have us mutate a copy of self only to throw it away.
206
206
match ( self , new_ip) {
@@ -244,7 +244,7 @@ impl SocketAddr {
244
244
/// ```
245
245
#[ inline]
246
246
#[ stable( feature = "sockaddr_setters" , since = "1.9.0" ) ]
247
- #[ rustc_const_unstable ( feature = "const_sockaddr_setters" , issue = "131714 " ) ]
247
+ #[ rustc_const_stable ( feature = "const_sockaddr_setters" , since = "CURRENT_RUSTC_VERSION " ) ]
248
248
pub const fn set_port ( & mut self , new_port : u16 ) {
249
249
match * self {
250
250
SocketAddr :: V4 ( ref mut a) => a. set_port ( new_port) ,
@@ -350,7 +350,7 @@ impl SocketAddrV4 {
350
350
/// ```
351
351
#[ inline]
352
352
#[ stable( feature = "sockaddr_setters" , since = "1.9.0" ) ]
353
- #[ rustc_const_unstable ( feature = "const_sockaddr_setters" , issue = "131714 " ) ]
353
+ #[ rustc_const_stable ( feature = "const_sockaddr_setters" , since = "CURRENT_RUSTC_VERSION " ) ]
354
354
pub const fn set_ip ( & mut self , new_ip : Ipv4Addr ) {
355
355
self . ip = new_ip;
356
356
}
@@ -386,7 +386,7 @@ impl SocketAddrV4 {
386
386
/// ```
387
387
#[ inline]
388
388
#[ stable( feature = "sockaddr_setters" , since = "1.9.0" ) ]
389
- #[ rustc_const_unstable ( feature = "const_sockaddr_setters" , issue = "131714 " ) ]
389
+ #[ rustc_const_stable ( feature = "const_sockaddr_setters" , since = "CURRENT_RUSTC_VERSION " ) ]
390
390
pub const fn set_port ( & mut self , new_port : u16 ) {
391
391
self . port = new_port;
392
392
}
@@ -448,7 +448,7 @@ impl SocketAddrV6 {
448
448
/// ```
449
449
#[ inline]
450
450
#[ stable( feature = "sockaddr_setters" , since = "1.9.0" ) ]
451
- #[ rustc_const_unstable ( feature = "const_sockaddr_setters" , issue = "131714 " ) ]
451
+ #[ rustc_const_stable ( feature = "const_sockaddr_setters" , since = "CURRENT_RUSTC_VERSION " ) ]
452
452
pub const fn set_ip ( & mut self , new_ip : Ipv6Addr ) {
453
453
self . ip = new_ip;
454
454
}
@@ -484,7 +484,7 @@ impl SocketAddrV6 {
484
484
/// ```
485
485
#[ inline]
486
486
#[ stable( feature = "sockaddr_setters" , since = "1.9.0" ) ]
487
- #[ rustc_const_unstable ( feature = "const_sockaddr_setters" , issue = "131714 " ) ]
487
+ #[ rustc_const_stable ( feature = "const_sockaddr_setters" , since = "CURRENT_RUSTC_VERSION " ) ]
488
488
pub const fn set_port ( & mut self , new_port : u16 ) {
489
489
self . port = new_port;
490
490
}
@@ -532,7 +532,7 @@ impl SocketAddrV6 {
532
532
/// ```
533
533
#[ inline]
534
534
#[ stable( feature = "sockaddr_setters" , since = "1.9.0" ) ]
535
- #[ rustc_const_unstable ( feature = "const_sockaddr_setters" , issue = "131714 " ) ]
535
+ #[ rustc_const_stable ( feature = "const_sockaddr_setters" , since = "CURRENT_RUSTC_VERSION " ) ]
536
536
pub const fn set_flowinfo ( & mut self , new_flowinfo : u32 ) {
537
537
self . flowinfo = new_flowinfo;
538
538
}
@@ -575,7 +575,7 @@ impl SocketAddrV6 {
575
575
/// ```
576
576
#[ inline]
577
577
#[ stable( feature = "sockaddr_setters" , since = "1.9.0" ) ]
578
- #[ rustc_const_unstable ( feature = "const_sockaddr_setters" , issue = "131714 " ) ]
578
+ #[ rustc_const_stable ( feature = "const_sockaddr_setters" , since = "CURRENT_RUSTC_VERSION " ) ]
579
579
pub const fn set_scope_id ( & mut self , new_scope_id : u32 ) {
580
580
self . scope_id = new_scope_id;
581
581
}
0 commit comments