Skip to content

Commit 7ce8191

Browse files
committed
Stabilize i128_type
1 parent 5e4603f commit 7ce8191

File tree

46 files changed

+37
-147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+37
-147
lines changed

src/liballoc/benches/lib.rs

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

1111
#![deny(warnings)]
1212

13-
#![feature(i128_type)]
13+
#![cfg_attr(stage0, feature(i128_type))]
1414
#![feature(rand)]
1515
#![feature(repr_simd)]
1616
#![feature(test)]

src/liballoc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
#![feature(from_ref)]
9898
#![feature(fundamental)]
9999
#![feature(generic_param_attrs)]
100-
#![feature(i128_type)]
100+
#![cfg_attr(stage0, feature(i128_type))]
101101
#![feature(iter_rfold)]
102102
#![feature(lang_items)]
103103
#![feature(needs_allocator)]

src/libcore/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
#![feature(doc_spotlight)]
7979
#![feature(fn_must_use)]
8080
#![feature(fundamental)]
81-
#![feature(i128_type)]
81+
#![cfg_attr(stage0, feature(i128_type))]
8282
#![cfg_attr(stage0, feature(inclusive_range_syntax))]
8383
#![feature(intrinsics)]
8484
#![feature(iterator_flatten)]

src/libcore/num/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,8 +1635,7 @@ impl i64 {
16351635
#[lang = "i128"]
16361636
impl i128 {
16371637
int_impl! { i128, i128, u128, 128, -170141183460469231731687303715884105728,
1638-
170141183460469231731687303715884105727, "#![feature(i128_type)]
1639-
#![feature(i128)]
1638+
170141183460469231731687303715884105727, "#![feature(i128)]
16401639
# fn main() {
16411640
", "
16421641
# }" }
@@ -3493,8 +3492,7 @@ impl u64 {
34933492

34943493
#[lang = "u128"]
34953494
impl u128 {
3496-
uint_impl! { u128, u128, 128, 340282366920938463463374607431768211455, "#![feature(i128_type)]
3497-
#![feature(i128)]
3495+
uint_impl! { u128, u128, 128, 340282366920938463463374607431768211455, "#![feature(i128)]
34983496
34993497
# fn main() {
35003498
", "

src/libcore/tests/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#![feature(fmt_internals)]
2424
#![feature(hashmap_internals)]
2525
#![feature(iterator_step_by)]
26-
#![feature(i128_type)]
26+
#![cfg_attr(stage0, feature(i128_type))]
2727
#![cfg_attr(stage0, feature(inclusive_range_syntax))]
2828
#![feature(iterator_try_fold)]
2929
#![feature(iterator_flatten)]

src/libproc_macro/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
test(no_crate_inject, attr(deny(warnings))),
3535
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut))))]
3636

37-
#![feature(i128_type)]
37+
#![cfg_attr(stage0, feature(i128_type))]
3838
#![feature(rustc_private)]
3939
#![feature(staged_api)]
4040
#![feature(lang_items)]

src/librustc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#![feature(from_ref)]
5454
#![feature(fs_read_write)]
5555
#![feature(i128)]
56-
#![feature(i128_type)]
56+
#![cfg_attr(stage0, feature(i128_type))]
5757
#![cfg_attr(stage0, feature(inclusive_range_syntax))]
5858
#![cfg_attr(windows, feature(libc))]
5959
#![feature(match_default_bindings)]

src/librustc_apfloat/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
#![deny(warnings)]
4747
#![forbid(unsafe_code)]
4848

49-
#![feature(i128_type)]
5049
#![cfg_attr(stage0, feature(slice_patterns))]
50+
#![cfg_attr(stage0, feature(i128_type))]
5151
#![feature(try_from)]
5252

5353
// See librustc_cratesio_shim/Cargo.toml for a comment explaining this.

src/librustc_apfloat/tests/ieee.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(i128_type)]
11+
#![cfg_attr(stage0, feature(i128_type))]
1212

1313
#[macro_use]
1414
extern crate rustc_apfloat;

src/librustc_const_eval/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#![feature(box_patterns)]
2424
#![feature(box_syntax)]
2525
#![feature(macro_lifetime_matcher)]
26-
#![feature(i128_type)]
26+
#![cfg_attr(stage0, feature(i128_type))]
2727
#![feature(from_ref)]
2828

2929
extern crate arena;

0 commit comments

Comments
 (0)