Bump version to 1.50.0

This commit is contained in:
Christiaan Dirkx 2020-11-23 01:40:26 +01:00
parent 3f8fdf83ff
commit 4613bc96a4

View file

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