]> git.lizzy.rs Git - rust.git/commitdiff
Add unstable attributes for Ipv?Addr constructors.
authorJ. Cliff Dyer <jcd@sdf.org>
Fri, 15 Sep 2017 01:30:36 +0000 (21:30 -0400)
committerJ. Cliff Dyer <jcd@sdf.org>
Fri, 15 Sep 2017 01:30:36 +0000 (21:30 -0400)
src/libstd/net/ip.rs

index d3ea3845f1207727b0f3e5f027212ffb50bf7f8f..eea604943af8bd8f2f7177de7c80781fc7432053 100644 (file)
@@ -10,7 +10,7 @@
 
 #![unstable(feature = "ip", reason = "extra functionality has not been \
                                       scrutinized to the level that it should \
-                                      be stable",
+                                      be to be stable",
             issue = "27709")]
 
 use cmp::Ordering;
@@ -347,12 +347,15 @@ pub fn new(a: u8, b: u8, c: u8, d: u8) -> Ipv4Addr {
     /// # Examples
     ///
     /// ```
-    /// #![feature(ip)]
+    /// #![feature(ip_constructors)]
     /// use std::net::Ipv4Addr;
     ///
     /// let addr = Ipv4Addr::localhost();
     /// assert_eq!(addr, Ipv4Addr::new(127, 0, 0, 1));
     /// ```
+    #[unstable(feature = "ip_constructors",
+               reason = "requires greater scrutiny before stabilization",
+               issue = "44582")]
     pub fn localhost() -> Ipv4Addr {
         Ipv4Addr::new(127, 0, 0, 1)
     }
@@ -362,12 +365,15 @@ pub fn localhost() -> Ipv4Addr {
     /// # Examples
     ///
     /// ```
-    /// #![feature(ip)]
+    /// #![feature(ip_constructors)]
     /// use std::net::Ipv4Addr;
     ///
     /// let addr = Ipv4Addr::unspecified();
     /// assert_eq!(addr, Ipv4Addr::new(0, 0, 0, 0));
     /// ```
+    #[unstable(feature = "ip_constructors",
+               reason = "requires greater scrutiny before stabilization",
+               issue = "44582")]
     pub fn unspecified() -> Ipv4Addr {
         Ipv4Addr::new(0, 0, 0, 0)
     }
@@ -823,12 +829,15 @@ pub fn new(a: u16, b: u16, c: u16, d: u16, e: u16, f: u16, g: u16,
     /// # Examples
     ///
     /// ```
-    /// #![feature(ip)]
+    /// #![feature(ip_constructors)]
     /// use std::net::Ipv6Addr;
     ///
     /// let addr = Ipv6Addr::localhost();
     /// assert_eq!(addr, Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1));
     /// ```
+    #[unstable(feature = "ip_constructors",
+               reason = "requires greater scrutiny before stabilization",
+               issue = "44582")]
     pub fn localhost() -> Ipv6Addr {
         Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)
     }
@@ -838,12 +847,15 @@ pub fn localhost() -> Ipv6Addr {
     /// # Examples
     ///
     /// ```
-    /// #![feature(ip)]
+    /// #![feature(ip_constructors)]
     /// use std::net::Ipv6Addr;
     ///
     /// let addr = Ipv6Addr::unspecified();
     /// assert_eq!(addr, Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0));
     /// ```
+    #[unstable(feature = "ip_constructors",
+               reason = "requires greater scrutiny before stabilization",
+               issue = "44582")]
     pub fn unspecified() -> Ipv6Addr {
         Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0)
     }