Skip to content

Commit 6a52c09

Browse files
Add new feature gate to standard library
1 parent 2049052 commit 6a52c09

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

library/core/src/lib.rs

+1
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)]

library/std/src/lib.rs

+1
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)