Skip to content

Commit a55e79e

Browse files
authored
Rollup merge of rust-lang#77122 - ecstatic-morse:const-fn-arithmetic, r=RalfJung,oli-obk
Add `#![feature(const_fn_floating_point_arithmetic)]` cc rust-lang#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
2 parents fcbcda2 + f0c1583 commit a55e79e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
#![feature(const_pin)]
8383
#![feature(const_fn_union)]
8484
#![feature(const_fn)]
85+
#![cfg_attr(not(bootstrap), feature(const_fn_floating_point_arithmetic))]
8586
#![feature(const_generics)]
8687
#![feature(const_option)]
8788
#![feature(const_precise_live_drops)]

std/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
#![feature(clamp)]
237237
#![feature(concat_idents)]
238238
#![feature(const_cstr_unchecked)]
239+
#![cfg_attr(not(bootstrap), feature(const_fn_floating_point_arithmetic))]
239240
#![feature(const_fn_transmute)]
240241
#![feature(const_fn)]
241242
#![feature(const_ip)]

0 commit comments

Comments
 (0)