Skip to content

Commit 0710469

Browse files
committed
Fix missed i128 feature gates
1 parent ea89b50 commit 0710469

File tree

8 files changed

+19
-66
lines changed

8 files changed

+19
-66
lines changed

src/doc/unstable-book/src/language-features/repr128.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `repri128`
1+
# `repr128`
22

33
The tracking issue for this feature is: [#35118]
44

src/libcore/num/mod.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4046,39 +4046,39 @@ macro_rules! impl_from {
40464046
impl_from! { u8, u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
40474047
impl_from! { u8, u32, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
40484048
impl_from! { u8, u64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
4049-
impl_from! { u8, u128, #[unstable(feature = "i128", issue = "35118")] }
4049+
impl_from! { u8, u128, #[stable(feature = "i128", since = "1.26.0")] }
40504050
impl_from! { u8, usize, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
40514051
impl_from! { u16, u32, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
40524052
impl_from! { u16, u64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
4053-
impl_from! { u16, u128, #[unstable(feature = "i128", issue = "35118")] }
4053+
impl_from! { u16, u128, #[stable(feature = "i128", since = "1.26.0")] }
40544054
impl_from! { u32, u64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
4055-
impl_from! { u32, u128, #[unstable(feature = "i128", issue = "35118")] }
4056-
impl_from! { u64, u128, #[unstable(feature = "i128", issue = "35118")] }
4055+
impl_from! { u32, u128, #[stable(feature = "i128", since = "1.26.0")] }
4056+
impl_from! { u64, u128, #[stable(feature = "i128", since = "1.26.0")] }
40574057

40584058
// Signed -> Signed
40594059
impl_from! { i8, i16, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
40604060
impl_from! { i8, i32, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
40614061
impl_from! { i8, i64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
4062-
impl_from! { i8, i128, #[unstable(feature = "i128", issue = "35118")] }
4062+
impl_from! { i8, i128, #[stable(feature = "i128", since = "1.26.0")] }
40634063
impl_from! { i8, isize, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
40644064
impl_from! { i16, i32, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
40654065
impl_from! { i16, i64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
4066-
impl_from! { i16, i128, #[unstable(feature = "i128", issue = "35118")] }
4066+
impl_from! { i16, i128, #[stable(feature = "i128", since = "1.26.0")] }
40674067
impl_from! { i32, i64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
4068-
impl_from! { i32, i128, #[unstable(feature = "i128", issue = "35118")] }
4069-
impl_from! { i64, i128, #[unstable(feature = "i128", issue = "35118")] }
4068+
impl_from! { i32, i128, #[stable(feature = "i128", since = "1.26.0")] }
4069+
impl_from! { i64, i128, #[stable(feature = "i128", since = "1.26.0")] }
40704070

40714071
// Unsigned -> Signed
40724072
impl_from! { u8, i16, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
40734073
impl_from! { u8, i32, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
40744074
impl_from! { u8, i64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
4075-
impl_from! { u8, i128, #[unstable(feature = "i128", issue = "35118")] }
4075+
impl_from! { u8, i128, #[stable(feature = "i128", since = "1.26.0")] }
40764076
impl_from! { u16, i32, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
40774077
impl_from! { u16, i64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
4078-
impl_from! { u16, i128, #[unstable(feature = "i128", issue = "35118")] }
4078+
impl_from! { u16, i128, #[stable(feature = "i128", since = "1.26.0")] }
40794079
impl_from! { u32, i64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
4080-
impl_from! { u32, i128, #[unstable(feature = "i128", issue = "35118")] }
4081-
impl_from! { u64, i128, #[unstable(feature = "i128", issue = "35118")] }
4080+
impl_from! { u32, i128, #[stable(feature = "i128", since = "1.26.0")] }
4081+
impl_from! { u64, i128, #[stable(feature = "i128", since = "1.26.0")] }
40824082

40834083
// Note: integers can only be represented with full precision in a float if
40844084
// they fit in the significand, which is 24 bits in f32 and 53 bits in f64.

src/libstd/primitive_docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ mod prim_i64 { }
751751
/// The 128-bit signed integer type.
752752
///
753753
/// *[See also the `std::i128` module](i128/index.html).*
754-
#[unstable(feature = "i128", issue="35118")]
754+
#[stable(feature = "i128", since="1.26.0")]
755755
mod prim_i128 { }
756756

757757
#[doc(primitive = "u8")]
@@ -791,7 +791,7 @@ mod prim_u64 { }
791791
/// The 128-bit unsigned integer type.
792792
///
793793
/// *[See also the `std::u128` module](u128/index.html).*
794-
#[unstable(feature = "i128", issue="35118")]
794+
#[stable(feature = "i128", since="1.26.0")]
795795
mod prim_u128 { }
796796

797797
#[doc(primitive = "isize")]

src/libsyntax/diagnostic_list.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ An unstable feature was used.
250250
Erroneous code example:
251251
252252
```compile_fail,E658
253-
#[repr(u128)] // error: use of unstable library feature 'i128'
253+
#[repr(u128)] // error: use of unstable library feature 'repr128'
254254
enum Foo {
255255
Bar(u64),
256256
}
@@ -264,7 +264,7 @@ If you're using a nightly version of rustc, just add the corresponding feature
264264
to be able to use it:
265265
266266
```
267-
#![feature(repri128)]
267+
#![feature(repr128)]
268268
269269
#[repr(u128)] // ok!
270270
enum Foo {

src/test/run-pass/saturating-float-casts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Tests saturating float->int casts. See u128-as-f32.rs for the opposite direction.
1212
// compile-flags: -Z saturating-float-casts
1313

14-
#![feature(test, i128, stmt_expr_attributes)]
14+
#![feature(test, stmt_expr_attributes)]
1515
#![deny(overflowing_literals)]
1616
extern crate test;
1717

src/test/run-pass/u128-as-f32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// ignore-emscripten u128 not supported
1212

13-
#![feature(test, i128)]
13+
#![feature(test)]
1414
#![deny(overflowing_literals)]
1515
extern crate test;
1616

src/test/ui/feature-gate-i128_type2.rs

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/test/ui/feature-gate-i128_type2.stderr

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)