diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-10-05 10:17:16 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-10-05 10:36:14 +0200 |
| commit | ec74d3533a9b88505d56d0ae00a78acf2e702c92 (patch) | |
| tree | 90aea3515066a7dcb1069739a194d9153e03073b /src/liballoc | |
| parent | b8bea5a0a6aef3966008787a25949344f8cf6942 (diff) | |
| download | rust-ec74d3533a9b88505d56d0ae00a78acf2e702c92.tar.gz rust-ec74d3533a9b88505d56d0ae00a78acf2e702c92.zip | |
Stabilize `min_const_fn`
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/lib.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/tests/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index 5f9ceb8599c..78d1958b8fb 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -86,7 +86,7 @@ #![feature(box_syntax)] #![feature(cfg_target_has_atomic)] #![feature(coerce_unsized)] -#![feature(min_const_fn)] +#![cfg_attr(stage0, feature(min_const_fn))] #![feature(core_intrinsics)] #![feature(custom_attribute)] #![feature(dropck_eyepatch)] diff --git a/src/liballoc/tests/lib.rs b/src/liballoc/tests/lib.rs index b9ba319a943..c771c41dc3e 100644 --- a/src/liballoc/tests/lib.rs +++ b/src/liballoc/tests/lib.rs @@ -11,7 +11,7 @@ #![feature(allocator_api)] #![feature(alloc_system)] #![feature(box_syntax)] -#![feature(min_const_fn)] +#![cfg_attr(stage0, feature(min_const_fn))] #![feature(drain_filter)] #![feature(exact_size_is_empty)] #![feature(pattern)] |
