about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatt Horn <mathphreak@gmail.com>2016-07-06 20:47:47 -0600
committerMatt Horn <mathphreak@gmail.com>2016-07-06 20:47:47 -0600
commit211c655c97d35a511e27b30480e196ea04e4e13f (patch)
tree4bac6a50c88b9f25757cf89e1ad849e70c675400 /src
parentb8141049da7507bdbf2b037847945e5bb299ccad (diff)
downloadrust-211c655c97d35a511e27b30480e196ea04e4e13f.tar.gz
rust-211c655c97d35a511e27b30480e196ea04e4e13f.zip
Mark new methods as unstable
Diffstat (limited to 'src')
-rw-r--r--src/libstd/net/ip.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs
index b9a57579b5c..6bbba7ffb20 100644
--- a/src/libstd/net/ip.rs
+++ b/src/libstd/net/ip.rs
@@ -61,6 +61,7 @@ pub enum Ipv6MulticastScope {
 
 impl IpAddr {
     /// Returns true for the special 'unspecified' address (0.0.0.0 in IPv4, :: in IPv6).
+    #[unstable(feature="ipaddr_common", reason="recently added and depends on unstable Ipv4Addr.is_unspecified()", issue="27709")]
     pub fn is_unspecified(&self) -> bool {
         match *self {
             IpAddr::V4(ref a) => a.is_unspecified(),
@@ -69,6 +70,7 @@ impl IpAddr {
     }
 
     /// Returns true if this is a loopback address (127.0.0.0/8 in IPv4, ::1 in IPv6).
+    #[unstable(feature="ipaddr_common", reason="recently added", issue="27709")]
     pub fn is_loopback(&self) -> bool {
         match *self {
             IpAddr::V4(ref a) => a.is_loopback(),
@@ -77,6 +79,7 @@ impl IpAddr {
     }
 
     /// Returns true if the address appears to be globally routable.
+    #[unstable(feature="ipaddr_common", reason="recently added and depends on unstable Ipv4Addr.is_global() and Ipv6Addr.is_global()", issue="27709")]
     pub fn is_global(&self) -> bool {
         match *self {
             IpAddr::V4(ref a) => a.is_global(),
@@ -85,6 +88,7 @@ impl IpAddr {
     }
 
     /// Returns true if this is a multicast address (224.0.0.0/4 in IPv4, ff00::/8 in IPv6)
+    #[unstable(feature="ipaddr_common", reason="recently added", issue="27709")]
     pub fn is_multicast(&self) -> bool {
         match *self {
             IpAddr::V4(ref a) => a.is_multicast(),
@@ -93,6 +97,7 @@ impl IpAddr {
     }
 
     /// Returns true if this address is in a range designated for documentation.
+    #[unstable(feature="ipaddr_common", reason="recently added and depends on unstable Ipv6Addr.is_documentation()", issue="27709")]
     pub fn is_documentation(&self) -> bool {
         match *self {
             IpAddr::V4(ref a) => a.is_documentation(),