@@ -357,47 +357,38 @@ impl Ipv4Addr {
357
357
/// # Examples
358
358
///
359
359
/// ```
360
- /// #![feature(ip_constructors)]
361
360
/// use std::net::Ipv4Addr;
362
361
///
363
362
/// let addr = Ipv4Addr::LOCALHOST;
364
363
/// assert_eq!(addr, Ipv4Addr::new(127, 0, 0, 1));
365
364
/// ```
366
- #[ unstable( feature = "ip_constructors" ,
367
- reason = "requires greater scrutiny before stabilization" ,
368
- issue = "44582" ) ]
365
+ #[ stable( feature = "ip_constructors" , since = "1.30.0" ) ]
369
366
pub const LOCALHOST : Self = Ipv4Addr :: new ( 127 , 0 , 0 , 1 ) ;
370
367
371
368
/// An IPv4 address representing an unspecified address: 0.0.0.0
372
369
///
373
370
/// # Examples
374
371
///
375
372
/// ```
376
- /// #![feature(ip_constructors)]
377
373
/// use std::net::Ipv4Addr;
378
374
///
379
375
/// let addr = Ipv4Addr::UNSPECIFIED;
380
376
/// assert_eq!(addr, Ipv4Addr::new(0, 0, 0, 0));
381
377
/// ```
382
- #[ unstable( feature = "ip_constructors" ,
383
- reason = "requires greater scrutiny before stabilization" ,
384
- issue = "44582" ) ]
378
+ #[ stable( feature = "ip_constructors" , since = "1.30.0" ) ]
385
379
pub const UNSPECIFIED : Self = Ipv4Addr :: new ( 0 , 0 , 0 , 0 ) ;
386
380
387
381
/// An IPv4 address representing the broadcast address: 255.255.255.255
388
382
///
389
383
/// # Examples
390
384
///
391
385
/// ```
392
- /// #![feature(ip_constructors)]
393
386
/// use std::net::Ipv4Addr;
394
387
///
395
388
/// let addr = Ipv4Addr::BROADCAST;
396
389
/// assert_eq!(addr, Ipv4Addr::new(255, 255, 255, 255));
397
390
/// ```
398
- #[ unstable( feature = "ip_constructors" ,
399
- reason = "requires greater scrutiny before stabilization" ,
400
- issue = "44582" ) ]
391
+ #[ stable( feature = "ip_constructors" , since = "1.30.0" ) ]
401
392
pub const BROADCAST : Self = Ipv4Addr :: new ( 255 , 255 , 255 , 255 ) ;
402
393
403
394
/// Returns the four eight-bit integers that make up this address.
@@ -896,31 +887,25 @@ impl Ipv6Addr {
896
887
/// # Examples
897
888
///
898
889
/// ```
899
- /// #![feature(ip_constructors)]
900
890
/// use std::net::Ipv6Addr;
901
891
///
902
892
/// let addr = Ipv6Addr::LOCALHOST;
903
893
/// assert_eq!(addr, Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1));
904
894
/// ```
905
- #[ unstable( feature = "ip_constructors" ,
906
- reason = "requires greater scrutiny before stabilization" ,
907
- issue = "44582" ) ]
895
+ #[ stable( feature = "ip_constructors" , since = "1.30.0" ) ]
908
896
pub const LOCALHOST : Self = Ipv6Addr :: new ( 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 ) ;
909
897
910
898
/// An IPv6 address representing the unspecified address: `::`
911
899
///
912
900
/// # Examples
913
901
///
914
902
/// ```
915
- /// #![feature(ip_constructors)]
916
903
/// use std::net::Ipv6Addr;
917
904
///
918
905
/// let addr = Ipv6Addr::UNSPECIFIED;
919
906
/// assert_eq!(addr, Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0));
920
907
/// ```
921
- #[ unstable( feature = "ip_constructors" ,
922
- reason = "requires greater scrutiny before stabilization" ,
923
- issue = "44582" ) ]
908
+ #[ stable( feature = "ip_constructors" , since = "1.30.0" ) ]
924
909
pub const UNSPECIFIED : Self = Ipv6Addr :: new ( 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ) ;
925
910
926
911
/// Returns the eight 16-bit segments that make up this address.
0 commit comments