Skip to content

Commit df00682

Browse files
committed
Merge remote-tracking branch 'GrigorenkoPV/ip_from' into manual-rollup
2 parents 70cd6d7 + 964eb82 commit df00682

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

library/core/src/net/ip_addr.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -626,13 +626,13 @@ impl Ipv4Addr {
626626
/// # Examples
627627
///
628628
/// ```
629-
/// #![feature(ip_from)]
630629
/// use std::net::Ipv4Addr;
631630
///
632631
/// let addr = Ipv4Addr::from_octets([13u8, 12u8, 11u8, 10u8]);
633632
/// assert_eq!(Ipv4Addr::new(13, 12, 11, 10), addr);
634633
/// ```
635-
#[unstable(feature = "ip_from", issue = "131360")]
634+
#[stable(feature = "ip_from", since = "CURRENT_RUSTC_VERSION")]
635+
#[rustc_const_stable(feature = "ip_from", since = "CURRENT_RUSTC_VERSION")]
636636
#[must_use]
637637
#[inline]
638638
pub const fn from_octets(octets: [u8; 4]) -> Ipv4Addr {
@@ -1464,7 +1464,6 @@ impl Ipv6Addr {
14641464
/// # Examples
14651465
///
14661466
/// ```
1467-
/// #![feature(ip_from)]
14681467
/// use std::net::Ipv6Addr;
14691468
///
14701469
/// let addr = Ipv6Addr::from_segments([
@@ -1479,7 +1478,8 @@ impl Ipv6Addr {
14791478
/// addr
14801479
/// );
14811480
/// ```
1482-
#[unstable(feature = "ip_from", issue = "131360")]
1481+
#[stable(feature = "ip_from", since = "CURRENT_RUSTC_VERSION")]
1482+
#[rustc_const_stable(feature = "ip_from", since = "CURRENT_RUSTC_VERSION")]
14831483
#[must_use]
14841484
#[inline]
14851485
pub const fn from_segments(segments: [u16; 8]) -> Ipv6Addr {
@@ -2029,7 +2029,6 @@ impl Ipv6Addr {
20292029
/// # Examples
20302030
///
20312031
/// ```
2032-
/// #![feature(ip_from)]
20332032
/// use std::net::Ipv6Addr;
20342033
///
20352034
/// let addr = Ipv6Addr::from_octets([
@@ -2044,7 +2043,8 @@ impl Ipv6Addr {
20442043
/// addr
20452044
/// );
20462045
/// ```
2047-
#[unstable(feature = "ip_from", issue = "131360")]
2046+
#[stable(feature = "ip_from", since = "CURRENT_RUSTC_VERSION")]
2047+
#[rustc_const_stable(feature = "ip_from", since = "CURRENT_RUSTC_VERSION")]
20482048
#[must_use]
20492049
#[inline]
20502050
pub const fn from_octets(octets: [u8; 16]) -> Ipv6Addr {

library/coretests/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
#![feature(hashmap_internals)]
5757
#![feature(int_roundings)]
5858
#![feature(ip)]
59-
#![feature(ip_from)]
6059
#![feature(is_ascii_octdigit)]
6160
#![feature(isolate_most_least_significant_one)]
6261
#![feature(iter_advance_by)]

0 commit comments

Comments
 (0)