From d125e904b5e298f710c7a5a1aaa3ebd953d2ced3 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 29 Aug 2018 13:20:43 +0200 Subject: Restrict most uses of `const_fn` to `min_const_fn` --- src/liballoc/tests/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/liballoc/tests') diff --git a/src/liballoc/tests/lib.rs b/src/liballoc/tests/lib.rs index 3a84f9e7e47..710c659ac53 100644 --- a/src/liballoc/tests/lib.rs +++ b/src/liballoc/tests/lib.rs @@ -11,7 +11,8 @@ #![feature(allocator_api)] #![feature(alloc_system)] #![feature(box_syntax)] -#![feature(const_fn)] +#![cfg_attr(stage0, feature(const_fn))] +#![cfg_attr(not(stage0), feature(min_const_fn))] #![feature(drain_filter)] #![feature(exact_size_is_empty)] #![feature(pattern)] -- cgit 1.4.1-3-g733a5