Skip to content

Commit 2c5e784

Browse files
committed
add const_fn features
1 parent 1f29fd4 commit 2c5e784

27 files changed

+38
-1
lines changed

src/libcollectionstest/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#![feature(collections)]
1515
#![feature(collections_drain)]
1616
#![feature(core)]
17+
#![feature(const_fn)]
1718
#![feature(hash)]
1819
#![feature(rand)]
1920
#![feature(rustc_private)]

src/libcoretest/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#![feature(box_syntax)]
1515
#![feature(unboxed_closures)]
1616
#![feature(core)]
17+
#![feature(const_fn)]
1718
#![feature(test)]
1819
#![feature(rand)]
1920
#![feature(unicode)]

src/liblog/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
#![feature(staged_api)]
174174
#![feature(box_syntax)]
175175
#![feature(core)]
176+
#![feature(const_fn)]
176177
#![feature(std_misc)]
177178

178179
use std::boxed;

src/librustc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#![feature(box_patterns)]
3030
#![feature(box_syntax)]
3131
#![feature(collections)]
32+
#![feature(const_fn)]
3233
#![feature(core)]
3334
#![feature(duration)]
3435
#![feature(duration_span)]

src/librustc_trans/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#![feature(box_syntax)]
3131
#![feature(collections)]
3232
#![feature(core)]
33+
#![feature(const_fn)]
3334
#![feature(libc)]
3435
#![feature(quote)]
3536
#![feature(rustc_diagnostic_macros)]

src/test/auxiliary/issue-17718.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![feature(const_fn)]
12+
1113
use std::sync::atomic;
1214

1315
pub const C1: usize = 1;

src/test/compile-fail/dropck_arr_cycle_checked.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
//
1414
// (Compare against compile-fail/dropck_vec_cycle_checked.rs)
1515

16+
#![feature(const_fn)]
17+
1618
use std::cell::Cell;
1719
use id::Id;
1820

src/test/compile-fail/dropck_tarena_cycle_checked.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// for the error message we see here.)
1818

1919
#![allow(unstable)]
20+
#![feature(const_fn)]
2021

2122
extern crate arena;
2223

src/test/compile-fail/dropck_trait_cycle_checked.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
//
1414
// (Compare against compile-fail/dropck_vec_cycle_checked.rs)
1515

16+
#![feature(const_fn)]
17+
1618
use std::cell::Cell;
1719
use id::Id;
1820

src/test/compile-fail/dropck_vec_cycle_checked.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
// (Compare against compile-fail/dropck_arr_cycle_checked.rs)
1414

15+
#![feature(const_fn)]
16+
1517
use std::cell::Cell;
1618
use id::Id;
1719

0 commit comments

Comments
 (0)