Skip to content

Commit 211c655

Browse files
committed
Mark new methods as unstable
1 parent b814104 commit 211c655

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libstd/net/ip.rs

+5
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ pub enum Ipv6MulticastScope {
6161

6262
impl IpAddr {
6363
/// Returns true for the special 'unspecified' address (0.0.0.0 in IPv4, :: in IPv6).
64+
#[unstable(feature="ipaddr_common", reason="recently added and depends on unstable Ipv4Addr.is_unspecified()", issue="27709")]
6465
pub fn is_unspecified(&self) -> bool {
6566
match *self {
6667
IpAddr::V4(ref a) => a.is_unspecified(),
@@ -69,6 +70,7 @@ impl IpAddr {
6970
}
7071

7172
/// Returns true if this is a loopback address (127.0.0.0/8 in IPv4, ::1 in IPv6).
73+
#[unstable(feature="ipaddr_common", reason="recently added", issue="27709")]
7274
pub fn is_loopback(&self) -> bool {
7375
match *self {
7476
IpAddr::V4(ref a) => a.is_loopback(),
@@ -77,6 +79,7 @@ impl IpAddr {
7779
}
7880

7981
/// Returns true if the address appears to be globally routable.
82+
#[unstable(feature="ipaddr_common", reason="recently added and depends on unstable Ipv4Addr.is_global() and Ipv6Addr.is_global()", issue="27709")]
8083
pub fn is_global(&self) -> bool {
8184
match *self {
8285
IpAddr::V4(ref a) => a.is_global(),
@@ -85,6 +88,7 @@ impl IpAddr {
8588
}
8689

8790
/// Returns true if this is a multicast address (224.0.0.0/4 in IPv4, ff00::/8 in IPv6)
91+
#[unstable(feature="ipaddr_common", reason="recently added", issue="27709")]
8892
pub fn is_multicast(&self) -> bool {
8993
match *self {
9094
IpAddr::V4(ref a) => a.is_multicast(),
@@ -93,6 +97,7 @@ impl IpAddr {
9397
}
9498

9599
/// Returns true if this address is in a range designated for documentation.
100+
#[unstable(feature="ipaddr_common", reason="recently added and depends on unstable Ipv6Addr.is_documentation()", issue="27709")]
96101
pub fn is_documentation(&self) -> bool {
97102
match *self {
98103
IpAddr::V4(ref a) => a.is_documentation(),

0 commit comments

Comments
 (0)