10
10
11
11
#![ unstable( feature = "ip" , reason = "extra functionality has not been \
12
12
scrutinized to the level that it should \
13
- be stable",
13
+ be to be stable",
14
14
issue = "27709" ) ]
15
15
16
16
use cmp:: Ordering ;
@@ -347,12 +347,15 @@ impl Ipv4Addr {
347
347
/// # Examples
348
348
///
349
349
/// ```
350
- /// #![feature(ip )]
350
+ /// #![feature(ip_constructors )]
351
351
/// use std::net::Ipv4Addr;
352
352
///
353
353
/// let addr = Ipv4Addr::localhost();
354
354
/// assert_eq!(addr, Ipv4Addr::new(127, 0, 0, 1));
355
355
/// ```
356
+ #[ unstable( feature = "ip_constructors" ,
357
+ reason = "requires greater scrutiny before stabilization" ,
358
+ issue = "44582" ) ]
356
359
pub fn localhost ( ) -> Ipv4Addr {
357
360
Ipv4Addr :: new ( 127 , 0 , 0 , 1 )
358
361
}
@@ -362,12 +365,15 @@ impl Ipv4Addr {
362
365
/// # Examples
363
366
///
364
367
/// ```
365
- /// #![feature(ip )]
368
+ /// #![feature(ip_constructors )]
366
369
/// use std::net::Ipv4Addr;
367
370
///
368
371
/// let addr = Ipv4Addr::unspecified();
369
372
/// assert_eq!(addr, Ipv4Addr::new(0, 0, 0, 0));
370
373
/// ```
374
+ #[ unstable( feature = "ip_constructors" ,
375
+ reason = "requires greater scrutiny before stabilization" ,
376
+ issue = "44582" ) ]
371
377
pub fn unspecified ( ) -> Ipv4Addr {
372
378
Ipv4Addr :: new ( 0 , 0 , 0 , 0 )
373
379
}
@@ -823,12 +829,15 @@ impl Ipv6Addr {
823
829
/// # Examples
824
830
///
825
831
/// ```
826
- /// #![feature(ip )]
832
+ /// #![feature(ip_constructors )]
827
833
/// use std::net::Ipv6Addr;
828
834
///
829
835
/// let addr = Ipv6Addr::localhost();
830
836
/// assert_eq!(addr, Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1));
831
837
/// ```
838
+ #[ unstable( feature = "ip_constructors" ,
839
+ reason = "requires greater scrutiny before stabilization" ,
840
+ issue = "44582" ) ]
832
841
pub fn localhost ( ) -> Ipv6Addr {
833
842
Ipv6Addr :: new ( 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 )
834
843
}
@@ -838,12 +847,15 @@ impl Ipv6Addr {
838
847
/// # Examples
839
848
///
840
849
/// ```
841
- /// #![feature(ip )]
850
+ /// #![feature(ip_constructors )]
842
851
/// use std::net::Ipv6Addr;
843
852
///
844
853
/// let addr = Ipv6Addr::unspecified();
845
854
/// assert_eq!(addr, Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0));
846
855
/// ```
856
+ #[ unstable( feature = "ip_constructors" ,
857
+ reason = "requires greater scrutiny before stabilization" ,
858
+ issue = "44582" ) ]
847
859
pub fn unspecified ( ) -> Ipv6Addr {
848
860
Ipv6Addr :: new ( 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )
849
861
}
0 commit comments