const-stabilize Ipv4Addr::new
This commit is contained in:
parent
2760f87e3a
commit
14be8a7f14
2 changed files with 2 additions and 2 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue