diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-12-31 16:36:39 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-12-31 16:36:39 +0100 |
| commit | 14be8a7f14fdcc4d146efc7501be9933e0a817b0 (patch) | |
| tree | e95bf13a96f103a08a5efe526d0da0e5cd0e8b2b /src/libstd | |
| parent | 2760f87e3a8433c90a9402418f6f802ca5821d4d (diff) | |
| download | rust-14be8a7f14fdcc4d146efc7501be9933e0a817b0.tar.gz rust-14be8a7f14fdcc4d146efc7501be9933e0a817b0.zip | |
const-stabilize Ipv4Addr::new
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/lib.rs | 2 | ||||
| -rw-r--r-- | src/libstd/net/ip.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 82cee70232a..a7ed7c3b81a 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -243,7 +243,7 @@ #![feature(compiler_builtins_lib)] #![feature(concat_idents)] #![cfg_attr(stage0, feature(const_int_ops))] -#![feature(const_ip)] +#![cfg_attr(stage0, feature(const_ip))] #![feature(const_raw_ptr_deref)] #![feature(const_cstr_unchecked)] #![feature(core_intrinsics)] diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs index 52a29f4885f..f98113e0896 100644 --- a/src/libstd/net/ip.rs +++ b/src/libstd/net/ip.rs @@ -328,7 +328,7 @@ impl Ipv4Addr { /// let addr = Ipv4Addr::new(127, 0, 0, 1); /// ``` #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_ip")] + #[cfg_attr(stage0, rustc_const_unstable(feature = "const_ip"))] pub const fn new(a: u8, b: u8, c: u8, d: u8) -> Ipv4Addr { Ipv4Addr { inner: c::in_addr { |
