Skip to content

Commit fee5b49

Browse files
committed
Properly mark new methods as unstable
1 parent 211c655 commit fee5b49

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/libstd/net/ip.rs

+8-5
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ 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")]
64+
#[unstable(feature="ip", issue="27709",
65+
reason="recently added and depends on unstable Ipv4Addr.is_unspecified()")]
6566
pub fn is_unspecified(&self) -> bool {
6667
match *self {
6768
IpAddr::V4(ref a) => a.is_unspecified(),
@@ -70,7 +71,7 @@ impl IpAddr {
7071
}
7172

7273
/// 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")]
74+
#[unstable(feature="ip", reason="recently added", issue="27709")]
7475
pub fn is_loopback(&self) -> bool {
7576
match *self {
7677
IpAddr::V4(ref a) => a.is_loopback(),
@@ -79,7 +80,8 @@ impl IpAddr {
7980
}
8081

8182
/// 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")]
83+
#[unstable(feature="ip", issue="27709",
84+
reason="recently added and depends on unstable Ip{v4,v6}Addr.is_global()")]
8385
pub fn is_global(&self) -> bool {
8486
match *self {
8587
IpAddr::V4(ref a) => a.is_global(),
@@ -88,7 +90,7 @@ impl IpAddr {
8890
}
8991

9092
/// 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")]
93+
#[unstable(feature="ip", reason="recently added", issue="27709")]
9294
pub fn is_multicast(&self) -> bool {
9395
match *self {
9496
IpAddr::V4(ref a) => a.is_multicast(),
@@ -97,7 +99,8 @@ impl IpAddr {
9799
}
98100

99101
/// 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")]
102+
#[unstable(feature="ip", issue="27709",
103+
reason="recently added and depends on unstable Ipv6Addr.is_documentation()")]
101104
pub fn is_documentation(&self) -> bool {
102105
match *self {
103106
IpAddr::V4(ref a) => a.is_documentation(),

0 commit comments

Comments
 (0)