summary refs log tree commit diff
path: root/library/alloc/src/lib.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2021-04-18 19:02:33 +0200
committerRalf Jung <post@ralfj.de>2021-04-18 19:11:29 +0200
commitfbfaab2cb745e98ab0f01631803319fd4cce2709 (patch)
tree596f84fc852196e6b324b64ca1e1ab87bcd2d090 /library/alloc/src/lib.rs
parentfdad6ab3a3e3f2cdd6bda7f2cc0c7da698ac01a0 (diff)
downloadrust-fbfaab2cb745e98ab0f01631803319fd4cce2709.tar.gz
rust-fbfaab2cb745e98ab0f01631803319fd4cce2709.zip
separate feature flag for unsizing casts in const fn
Diffstat (limited to 'library/alloc/src/lib.rs')
-rw-r--r--library/alloc/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs
index 70ff78d564e..3a5dcec668f 100644
--- a/library/alloc/src/lib.rs
+++ b/library/alloc/src/lib.rs
@@ -89,7 +89,7 @@
 #![feature(cfg_target_has_atomic)]
 #![feature(coerce_unsized)]
 #![feature(const_btree_new)]
-#![feature(const_fn)]
+#![cfg_attr(bootstrap, feature(const_fn))]
 #![cfg_attr(not(bootstrap), feature(const_fn_trait_bound))]
 #![feature(cow_is_borrowed)]
 #![feature(const_cow_is_borrowed)]