@@ -361,7 +361,7 @@ impl Ipv4Addr {
361
361
/// let addr = Ipv4Addr::new(127, 0, 0, 1);
362
362
/// assert_eq!(addr.octets(), [127, 0, 0, 1]);
363
363
/// ```
364
- #[ rustc_const_stable ( feature = "const_ipv4" , since = "1.48.0 " ) ]
364
+ #[ rustc_const_unstable ( feature = "const_ipv4" , issue = "76205 " ) ]
365
365
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
366
366
pub const fn octets ( & self ) -> [ u8 ; 4 ] {
367
367
// This returns the order we want because s_addr is stored in big-endian.
@@ -405,7 +405,7 @@ impl Ipv4Addr {
405
405
/// assert_eq!(Ipv4Addr::new(127, 0, 0, 1).is_loopback(), true);
406
406
/// assert_eq!(Ipv4Addr::new(45, 22, 13, 197).is_loopback(), false);
407
407
/// ```
408
- #[ rustc_const_stable ( feature = "const_ipv4" , since = "1.48.0 " ) ]
408
+ #[ rustc_const_unstable ( feature = "const_ipv4" , issue = "76205 " ) ]
409
409
#[ stable( since = "1.7.0" , feature = "ip_17" ) ]
410
410
pub const fn is_loopback ( & self ) -> bool {
411
411
self . octets ( ) [ 0 ] == 127
@@ -435,7 +435,7 @@ impl Ipv4Addr {
435
435
/// assert_eq!(Ipv4Addr::new(192, 168, 0, 2).is_private(), true);
436
436
/// assert_eq!(Ipv4Addr::new(192, 169, 0, 2).is_private(), false);
437
437
/// ```
438
- #[ rustc_const_stable ( feature = "const_ipv4" , since = "1.48.0 " ) ]
438
+ #[ rustc_const_unstable ( feature = "const_ipv4" , issue = "76205 " ) ]
439
439
#[ stable( since = "1.7.0" , feature = "ip_17" ) ]
440
440
pub const fn is_private ( & self ) -> bool {
441
441
match self . octets ( ) {
@@ -462,7 +462,7 @@ impl Ipv4Addr {
462
462
/// assert_eq!(Ipv4Addr::new(169, 254, 10, 65).is_link_local(), true);
463
463
/// assert_eq!(Ipv4Addr::new(16, 89, 10, 65).is_link_local(), false);
464
464
/// ```
465
- #[ rustc_const_stable ( feature = "const_ipv4" , since = "1.48.0 " ) ]
465
+ #[ rustc_const_unstable ( feature = "const_ipv4" , issue = "76205 " ) ]
466
466
#[ stable( since = "1.7.0" , feature = "ip_17" ) ]
467
467
pub const fn is_link_local ( & self ) -> bool {
468
468
match self . octets ( ) {
@@ -577,7 +577,7 @@ impl Ipv4Addr {
577
577
/// assert_eq!(Ipv4Addr::new(100, 127, 255, 255).is_shared(), true);
578
578
/// assert_eq!(Ipv4Addr::new(100, 128, 0, 0).is_shared(), false);
579
579
/// ```
580
- #[ rustc_const_stable ( feature = "const_ipv4" , since = "1.48.0 " ) ]
580
+ #[ rustc_const_unstable ( feature = "const_ipv4" , issue = "76205 " ) ]
581
581
pub const fn is_shared ( & self ) -> bool {
582
582
self . octets ( ) [ 0 ] == 100 && ( self . octets ( ) [ 1 ] & 0b1100_0000 == 0b0100_0000 )
583
583
}
@@ -610,7 +610,7 @@ impl Ipv4Addr {
610
610
/// assert_eq!(Ipv4Addr::new(192, 0, 1, 0).is_ietf_protocol_assignment(), false);
611
611
/// assert_eq!(Ipv4Addr::new(191, 255, 255, 255).is_ietf_protocol_assignment(), false);
612
612
/// ```
613
- #[ rustc_const_stable ( feature = "const_ipv4" , since = "1.48.0 " ) ]
613
+ #[ rustc_const_unstable ( feature = "const_ipv4" , issue = "76205 " ) ]
614
614
pub const fn is_ietf_protocol_assignment ( & self ) -> bool {
615
615
self . octets ( ) [ 0 ] == 192 && self . octets ( ) [ 1 ] == 0 && self . octets ( ) [ 2 ] == 0
616
616
}
@@ -634,7 +634,7 @@ impl Ipv4Addr {
634
634
/// assert_eq!(Ipv4Addr::new(198, 19, 255, 255).is_benchmarking(), true);
635
635
/// assert_eq!(Ipv4Addr::new(198, 20, 0, 0).is_benchmarking(), false);
636
636
/// ```
637
- #[ rustc_const_stable ( feature = "const_ipv4" , since = "1.48.0 " ) ]
637
+ #[ rustc_const_unstable ( feature = "const_ipv4" , issue = "76205 " ) ]
638
638
pub const fn is_benchmarking ( & self ) -> bool {
639
639
self . octets ( ) [ 0 ] == 198 && ( self . octets ( ) [ 1 ] & 0xfe ) == 18
640
640
}
@@ -688,7 +688,7 @@ impl Ipv4Addr {
688
688
/// assert_eq!(Ipv4Addr::new(236, 168, 10, 65).is_multicast(), true);
689
689
/// assert_eq!(Ipv4Addr::new(172, 16, 10, 65).is_multicast(), false);
690
690
/// ```
691
- #[ rustc_const_stable ( feature = "const_ipv4" , since = "1.48.0 " ) ]
691
+ #[ rustc_const_unstable ( feature = "const_ipv4" , issue = "76205 " ) ]
692
692
#[ stable( since = "1.7.0" , feature = "ip_17" ) ]
693
693
pub const fn is_multicast ( & self ) -> bool {
694
694
self . octets ( ) [ 0 ] >= 224 && self . octets ( ) [ 0 ] <= 239
@@ -735,7 +735,7 @@ impl Ipv4Addr {
735
735
/// assert_eq!(Ipv4Addr::new(203, 0, 113, 6).is_documentation(), true);
736
736
/// assert_eq!(Ipv4Addr::new(193, 34, 17, 19).is_documentation(), false);
737
737
/// ```
738
- #[ rustc_const_stable ( feature = "const_ipv4" , since = "1.48.0 " ) ]
738
+ #[ rustc_const_unstable ( feature = "const_ipv4" , issue = "76205 " ) ]
739
739
#[ stable( since = "1.7.0" , feature = "ip_17" ) ]
740
740
pub const fn is_documentation ( & self ) -> bool {
741
741
match self . octets ( ) {
0 commit comments