@@ -97,14 +97,8 @@ nonzero_integers! {
9797 NonZeroU16 ( u16 ) ; NonZeroI16 ( i16 ) ;
9898 NonZeroU32 ( u32 ) ; NonZeroI32 ( i32 ) ;
9999 NonZeroU64 ( u64 ) ; NonZeroI64 ( i64 ) ;
100- NonZeroUsize ( usize ) ; NonZeroIsize ( isize ) ;
101- }
102-
103- nonzero_integers ! {
104- // Change this to `#[unstable(feature = "i128", issue = "35118")]`
105- // if other NonZero* integer types are stabilizied before 128-bit integers
106- #[ unstable( feature = "nonzero" , issue = "49137" ) ]
107100 NonZeroU128 ( u128 ) ; NonZeroI128 ( i128 ) ;
101+ NonZeroUsize ( usize ) ; NonZeroIsize ( isize ) ;
108102}
109103
110104/// Provides intentionally-wrapped arithmetic on `T`.
@@ -1635,11 +1629,7 @@ impl i64 {
16351629#[ lang = "i128" ]
16361630impl i128 {
16371631 int_impl ! { i128 , i128 , u128 , 128 , -170141183460469231731687303715884105728 ,
1638- 170141183460469231731687303715884105727 , "#![feature(i128_type)]
1639- #![feature(i128)]
1640- # fn main() {
1641- " , "
1642- # }" }
1632+ 170141183460469231731687303715884105727 , "" , "" }
16431633}
16441634
16451635#[ cfg( target_pointer_width = "16" ) ]
@@ -3493,12 +3483,7 @@ impl u64 {
34933483
34943484#[ lang = "u128" ]
34953485impl u128 {
3496- uint_impl ! { u128 , u128 , 128 , 340282366920938463463374607431768211455 , "#![feature(i128_type)]
3497- #![feature(i128)]
3498-
3499- # fn main() {
3500- " , "
3501- # }" }
3486+ uint_impl ! { u128 , u128 , 128 , 340282366920938463463374607431768211455 , "" , "" }
35023487}
35033488
35043489#[ cfg( target_pointer_width = "16" ) ]
@@ -4055,39 +4040,39 @@ macro_rules! impl_from {
40554040impl_from ! { u8 , u16 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
40564041impl_from ! { u8 , u32 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
40574042impl_from ! { u8 , u64 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4058- impl_from ! { u8 , u128 , #[ unstable ( feature = "i128" , issue = "35118 " ) ] }
4043+ impl_from ! { u8 , u128 , #[ stable ( feature = "i128" , since = "1.26.0 " ) ] }
40594044impl_from ! { u8 , usize , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
40604045impl_from ! { u16 , u32 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
40614046impl_from ! { u16 , u64 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4062- impl_from ! { u16 , u128 , #[ unstable ( feature = "i128" , issue = "35118 " ) ] }
4047+ impl_from ! { u16 , u128 , #[ stable ( feature = "i128" , since = "1.26.0 " ) ] }
40634048impl_from ! { u32 , u64 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4064- impl_from ! { u32 , u128 , #[ unstable ( feature = "i128" , issue = "35118 " ) ] }
4065- impl_from ! { u64 , u128 , #[ unstable ( feature = "i128" , issue = "35118 " ) ] }
4049+ impl_from ! { u32 , u128 , #[ stable ( feature = "i128" , since = "1.26.0 " ) ] }
4050+ impl_from ! { u64 , u128 , #[ stable ( feature = "i128" , since = "1.26.0 " ) ] }
40664051
40674052// Signed -> Signed
40684053impl_from ! { i8 , i16 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
40694054impl_from ! { i8 , i32 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
40704055impl_from ! { i8 , i64 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4071- impl_from ! { i8 , i128 , #[ unstable ( feature = "i128" , issue = "35118 " ) ] }
4056+ impl_from ! { i8 , i128 , #[ stable ( feature = "i128" , since = "1.26.0 " ) ] }
40724057impl_from ! { i8 , isize , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
40734058impl_from ! { i16 , i32 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
40744059impl_from ! { i16 , i64 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4075- impl_from ! { i16 , i128 , #[ unstable ( feature = "i128" , issue = "35118 " ) ] }
4060+ impl_from ! { i16 , i128 , #[ stable ( feature = "i128" , since = "1.26.0 " ) ] }
40764061impl_from ! { i32 , i64 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4077- impl_from ! { i32 , i128 , #[ unstable ( feature = "i128" , issue = "35118 " ) ] }
4078- impl_from ! { i64 , i128 , #[ unstable ( feature = "i128" , issue = "35118 " ) ] }
4062+ impl_from ! { i32 , i128 , #[ stable ( feature = "i128" , since = "1.26.0 " ) ] }
4063+ impl_from ! { i64 , i128 , #[ stable ( feature = "i128" , since = "1.26.0 " ) ] }
40794064
40804065// Unsigned -> Signed
40814066impl_from ! { u8 , i16 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
40824067impl_from ! { u8 , i32 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
40834068impl_from ! { u8 , i64 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4084- impl_from ! { u8 , i128 , #[ unstable ( feature = "i128" , issue = "35118 " ) ] }
4069+ impl_from ! { u8 , i128 , #[ stable ( feature = "i128" , since = "1.26.0 " ) ] }
40854070impl_from ! { u16 , i32 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
40864071impl_from ! { u16 , i64 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4087- impl_from ! { u16 , i128 , #[ unstable ( feature = "i128" , issue = "35118 " ) ] }
4072+ impl_from ! { u16 , i128 , #[ stable ( feature = "i128" , since = "1.26.0 " ) ] }
40884073impl_from ! { u32 , i64 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4089- impl_from ! { u32 , i128 , #[ unstable ( feature = "i128" , issue = "35118 " ) ] }
4090- impl_from ! { u64 , i128 , #[ unstable ( feature = "i128" , issue = "35118 " ) ] }
4074+ impl_from ! { u32 , i128 , #[ stable ( feature = "i128" , since = "1.26.0 " ) ] }
4075+ impl_from ! { u64 , i128 , #[ stable ( feature = "i128" , since = "1.26.0 " ) ] }
40914076
40924077// Note: integers can only be represented with full precision in a float if
40934078// they fit in the significand, which is 24 bits in f32 and 53 bits in f64.
0 commit comments