File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 243
243
#![ feature( compiler_builtins_lib) ]
244
244
#![ feature( concat_idents) ]
245
245
#![ cfg_attr( stage0, feature( const_int_ops) ) ]
246
- #![ feature( const_ip) ]
246
+ #![ cfg_attr ( stage0 , feature( const_ip) ) ]
247
247
#![ feature( const_raw_ptr_deref) ]
248
248
#![ feature( const_cstr_unchecked) ]
249
249
#![ feature( core_intrinsics) ]
Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ impl Ipv4Addr {
328
328
/// let addr = Ipv4Addr::new(127, 0, 0, 1);
329
329
/// ```
330
330
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
331
- #[ rustc_const_unstable( feature = "const_ip" ) ]
331
+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_ip" ) ) ]
332
332
pub const fn new ( a : u8 , b : u8 , c : u8 , d : u8 ) -> Ipv4Addr {
333
333
Ipv4Addr {
334
334
inner : c:: in_addr {
You can’t perform that action at this time.
0 commit comments