Skip to content

Commit 14d59ec

Browse files
committed
move 'trait bounds on const fn' to separate feature gate
1 parent ec75f84 commit 14d59ec

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

alloc/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
#![feature(coerce_unsized)]
9191
#![feature(const_btree_new)]
9292
#![feature(const_fn)]
93+
#![cfg_attr(not(bootstrap), feature(const_fn_trait_bound))]
9394
#![feature(cow_is_borrowed)]
9495
#![feature(const_cow_is_borrowed)]
9596
#![feature(destructuring_assignment)]

core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
#![feature(const_impl_trait)]
8787
#![feature(const_fn_floating_point_arithmetic)]
8888
#![feature(const_fn_fn_ptr_basics)]
89+
#![cfg_attr(not(bootstrap), feature(const_fn_trait_bound))]
8990
#![feature(const_option)]
9091
#![feature(const_precise_live_drops)]
9192
#![feature(const_ptr_offset)]

0 commit comments

Comments
 (0)