Skip to content

Commit 1197f9a

Browse files
committed
Fix missed i128 feature gates
1 parent 8a334c9 commit 1197f9a

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
@@ -3958,39 +3958,39 @@ macro_rules! impl_from {
39583958
impl_from! { u8, u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
39593959
impl_from! { u8, u32, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
39603960
impl_from! { u8, u64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
3961-
impl_from! { u8, u128, #[unstable(feature = "i128", issue = "35118")] }
3961+
impl_from! { u8, u128, #[stable(feature = "i128", since = "1.26.0")] }
39623962
impl_from! { u8, usize, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
39633963
impl_from! { u16, u32, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
39643964
impl_from! { u16, u64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
3965-
impl_from! { u16, u128, #[unstable(feature = "i128", issue = "35118")] }
3965+
impl_from! { u16, u128, #[stable(feature = "i128", since = "1.26.0")] }
39663966
impl_from! { u32, u64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
3967-
impl_from! { u32, u128, #[unstable(feature = "i128", issue = "35118")] }
3968-
impl_from! { u64, u128, #[unstable(feature = "i128", issue = "35118")] }
3967+
impl_from! { u32, u128, #[stable(feature = "i128", since = "1.26.0")] }
3968+
impl_from! { u64, u128, #[stable(feature = "i128", since = "1.26.0")] }
39693969

39703970
// Signed -> Signed
39713971
impl_from! { i8, i16, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
39723972
impl_from! { i8, i32, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
39733973
impl_from! { i8, i64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
3974-
impl_from! { i8, i128, #[unstable(feature = "i128", issue = "35118")] }
3974+
impl_from! { i8, i128, #[stable(feature = "i128", since = "1.26.0")] }
39753975
impl_from! { i8, isize, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
39763976
impl_from! { i16, i32, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
39773977
impl_from! { i16, i64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
3978-
impl_from! { i16, i128, #[unstable(feature = "i128", issue = "35118")] }
3978+
impl_from! { i16, i128, #[stable(feature = "i128", since = "1.26.0")] }
39793979
impl_from! { i32, i64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
3980-
impl_from! { i32, i128, #[unstable(feature = "i128", issue = "35118")] }
3981-
impl_from! { i64, i128, #[unstable(feature = "i128", issue = "35118")] }
3980+
impl_from! { i32, i128, #[stable(feature = "i128", since = "1.26.0")] }
3981+
impl_from! { i64, i128, #[stable(feature = "i128", since = "1.26.0")] }
39823982

39833983
// Unsigned -> Signed
39843984
impl_from! { u8, i16, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
39853985
impl_from! { u8, i32, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
39863986
impl_from! { u8, i64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
3987-
impl_from! { u8, i128, #[unstable(feature = "i128", issue = "35118")] }
3987+
impl_from! { u8, i128, #[stable(feature = "i128", since = "1.26.0")] }
39883988
impl_from! { u16, i32, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
39893989
impl_from! { u16, i64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
3990-
impl_from! { u16, i128, #[unstable(feature = "i128", issue = "35118")] }
3990+
impl_from! { u16, i128, #[stable(feature = "i128", since = "1.26.0")] }
39913991
impl_from! { u32, i64, #[stable(feature = "lossless_int_conv", since = "1.5.0")] }
3992-
impl_from! { u32, i128, #[unstable(feature = "i128", issue = "35118")] }
3993-
impl_from! { u64, i128, #[unstable(feature = "i128", issue = "35118")] }
3992+
impl_from! { u32, i128, #[stable(feature = "i128", since = "1.26.0")] }
3993+
impl_from! { u64, i128, #[stable(feature = "i128", since = "1.26.0")] }
39943994

39953995
// Note: integers can only be represented with full precision in a float if
39963996
// 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)