diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-08-29 13:00:14 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-08-31 08:39:59 +0200 |
| commit | 7b3d930ca6f8269d07bce30ace4a9be2f316a63a (patch) | |
| tree | 69038fa1da8720e6c14b1b4604107004c145f35c /src/libstd/lib.rs | |
| parent | 472ca7159812f8c360697f63454ee7bda1e02570 (diff) | |
| download | rust-7b3d930ca6f8269d07bce30ace4a9be2f316a63a.tar.gz rust-7b3d930ca6f8269d07bce30ace4a9be2f316a63a.zip | |
Libstd only has `min_const_fn` const fns
Diffstat (limited to 'src/libstd/lib.rs')
| -rw-r--r-- | src/libstd/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 310475d31fd..e7195b3e21e 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -250,7 +250,8 @@ #![feature(cfg_target_vendor)] #![feature(char_error_internals)] #![feature(compiler_builtins_lib)] -#![feature(const_fn)] +#![cfg_attr(stage0, feature(const_fn))] +#![cfg_attr(not(stage0), feature(min_const_fn))] #![feature(const_int_ops)] #![feature(const_ip)] #![feature(core_intrinsics)] |
