about summary refs log tree commit diff
path: root/src/liballoc/lib.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-16 17:09:34 +0200
committerGitHub <noreply@github.com>2019-09-16 17:09:34 +0200
commitbe327a8f692919fd26742e6b88918878f67d60dd (patch)
treee19cbb400b987b43bb86402085db3ca10d11c9f9 /src/liballoc/lib.rs
parentf432d5030ed4c16932cab88bbf71175cd285a03b (diff)
parent9b3e11f635c0354040ce515ac0ed4fade6fe928f (diff)
downloadrust-be327a8f692919fd26742e6b88918878f67d60dd.tar.gz
rust-be327a8f692919fd26742e6b88918878f67d60dd.zip
Rollup merge of #64028 - Centril:stabilize-alloc-new-2, r=alexcrichton
Stabilize `Vec::new` and `String::new` as `const fn`s

Closes https://github.com/rust-lang/rust/issues/64022.

r? @oli-obk
Diffstat (limited to 'src/liballoc/lib.rs')
-rw-r--r--src/liballoc/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index 370e5cf4b30..9e6ed92ffb5 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -117,7 +117,7 @@
 #![feature(allocator_internals)]
 #![feature(on_unimplemented)]
 #![feature(rustc_const_unstable)]
-#![feature(const_vec_new)]
+#![cfg_attr(bootstrap, feature(const_vec_new))]
 #![feature(slice_partition_dedup)]
 #![feature(maybe_uninit_extra, maybe_uninit_slice)]
 #![feature(alloc_layout_extra)]