@@ -97,14 +97,8 @@ nonzero_integers! {
97
97
NonZeroU16 ( u16 ) ; NonZeroI16 ( i16 ) ;
98
98
NonZeroU32 ( u32 ) ; NonZeroI32 ( i32 ) ;
99
99
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" ) ]
107
100
NonZeroU128 ( u128 ) ; NonZeroI128 ( i128 ) ;
101
+ NonZeroUsize ( usize ) ; NonZeroIsize ( isize ) ;
108
102
}
109
103
110
104
/// Provides intentionally-wrapped arithmetic on `T`.
@@ -1635,11 +1629,7 @@ impl i64 {
1635
1629
#[ lang = "i128" ]
1636
1630
impl i128 {
1637
1631
int_impl ! { i128 , i128 , u128 , 128 , -170141183460469231731687303715884105728 ,
1638
- 170141183460469231731687303715884105727 , "#![feature(i128_type)]
1639
- #![feature(i128)]
1640
- # fn main() {
1641
- " , "
1642
- # }" }
1632
+ 170141183460469231731687303715884105727 , "" , "" }
1643
1633
}
1644
1634
1645
1635
#[ cfg( target_pointer_width = "16" ) ]
@@ -3493,12 +3483,7 @@ impl u64 {
3493
3483
3494
3484
#[ lang = "u128" ]
3495
3485
impl 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 , "" , "" }
3502
3487
}
3503
3488
3504
3489
#[ cfg( target_pointer_width = "16" ) ]
@@ -4055,39 +4040,39 @@ macro_rules! impl_from {
4055
4040
impl_from ! { u8 , u16 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4056
4041
impl_from ! { u8 , u32 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4057
4042
impl_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 " ) ] }
4059
4044
impl_from ! { u8 , usize , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4060
4045
impl_from ! { u16 , u32 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4061
4046
impl_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 " ) ] }
4063
4048
impl_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 " ) ] }
4066
4051
4067
4052
// Signed -> Signed
4068
4053
impl_from ! { i8 , i16 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4069
4054
impl_from ! { i8 , i32 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4070
4055
impl_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 " ) ] }
4072
4057
impl_from ! { i8 , isize , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4073
4058
impl_from ! { i16 , i32 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4074
4059
impl_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 " ) ] }
4076
4061
impl_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 " ) ] }
4079
4064
4080
4065
// Unsigned -> Signed
4081
4066
impl_from ! { u8 , i16 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4082
4067
impl_from ! { u8 , i32 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4083
4068
impl_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 " ) ] }
4085
4070
impl_from ! { u16 , i32 , #[ stable( feature = "lossless_int_conv" , since = "1.5.0" ) ] }
4086
4071
impl_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 " ) ] }
4088
4073
impl_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 " ) ] }
4091
4076
4092
4077
// Note: integers can only be represented with full precision in a float if
4093
4078
// they fit in the significand, which is 24 bits in f32 and 53 bits in f64.
0 commit comments