about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-09-26 12:58:20 +0200
committerGitHub <noreply@github.com>2020-09-26 12:58:20 +0200
commit3b544e73ae9d31656807599146f852fd2c920e69 (patch)
treea4ae8190cace6297268aa85e7034cd3e4207751e /library/std/src
parentac8169dc106f2005d41d969c114d85e8e53bce61 (diff)
parent659028f48b7b47ee3e16a4d110b1379ed8524121 (diff)
downloadrust-3b544e73ae9d31656807599146f852fd2c920e69.tar.gz
rust-3b544e73ae9d31656807599146f852fd2c920e69.zip
Rollup merge of #77122 - ecstatic-morse:const-fn-arithmetic, r=RalfJung,oli-obk
Add `#![feature(const_fn_floating_point_arithmetic)]`

cc #76618

This is a template for splitting up `const_fn` into granular feature gates. I think this will make it easier, both for us and for users, to track stabilization of each individual feature. We don't *have* to do this, however. We could also keep stabilizing things out from under `const_fn`.

cc @rust-lang/wg-const-eval
r? @oli-obk
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index ac0075ad129..d03428dd082 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -236,6 +236,7 @@
 #![feature(clamp)]
 #![feature(concat_idents)]
 #![feature(const_cstr_unchecked)]
+#![cfg_attr(not(bootstrap), feature(const_fn_floating_point_arithmetic))]
 #![feature(const_fn_transmute)]
 #![feature(const_fn)]
 #![feature(const_ip)]