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 243243#![ feature( compiler_builtins_lib) ]
244244#![ feature( concat_idents) ]
245245#![ cfg_attr( stage0, feature( const_int_ops) ) ]
246- #![ feature( const_ip) ]
246+ #![ cfg_attr ( stage0 , feature( const_ip) ) ]
247247#![ feature( const_raw_ptr_deref) ]
248248#![ feature( const_cstr_unchecked) ]
249249#![ feature( core_intrinsics) ]
Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ impl Ipv4Addr {
328328 /// let addr = Ipv4Addr::new(127, 0, 0, 1);
329329 /// ```
330330 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
331- #[ rustc_const_unstable( feature = "const_ip" ) ]
331+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_ip" ) ) ]
332332 pub const fn new ( a : u8 , b : u8 , c : u8 , d : u8 ) -> Ipv4Addr {
333333 Ipv4Addr {
334334 inner : c:: in_addr {
You can’t perform that action at this time.
0 commit comments