@@ -263,7 +263,7 @@ impl IpAddr { |
|
|
263 |
263 |
/// assert_eq!(IpAddr::V4(Ipv4Addr::new(203, 0, 113, 6)).is_ipv4(), true); |
264 |
264 |
/// assert_eq!(IpAddr::V6(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0)).is_ipv4(), false); |
265 |
265 |
/// ``` |
266 |
|
- #[rustc_const_stable(feature = "const_ip", since = "1.48.0")] |
|
266 |
+ #[rustc_const_stable(feature = "const_ip", since = "1.50.0")] |
267 |
267 |
#[stable(feature = "ipaddr_checker", since = "1.16.0")] |
268 |
268 |
pub const fn is_ipv4(&self) -> bool { |
269 |
269 |
matches!(self, IpAddr::V4(_)) |
@@ -282,7 +282,7 @@ impl IpAddr { |
|
|
282 |
282 |
/// assert_eq!(IpAddr::V4(Ipv4Addr::new(203, 0, 113, 6)).is_ipv6(), false); |
283 |
283 |
/// assert_eq!(IpAddr::V6(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0)).is_ipv6(), true); |
284 |
284 |
/// ``` |
285 |
|
- #[rustc_const_stable(feature = "const_ip", since = "1.48.0")] |
|
285 |
+ #[rustc_const_stable(feature = "const_ip", since = "1.50.0")] |
286 |
286 |
#[stable(feature = "ipaddr_checker", since = "1.16.0")] |
287 |
287 |
pub const fn is_ipv6(&self) -> bool { |
288 |
288 |
matches!(self, IpAddr::V6(_)) |