about summary refs log tree commit diff
path: root/src/liballoc/lib.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-08-29 11:32:38 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-09-16 16:45:16 +0200
commitd5fe5831ecc82d2705110810261b79ae4040c403 (patch)
treea8e0fa2044d0f23bd9df242f98e8e33c8f793502 /src/liballoc/lib.rs
parentb6269f27d99d7da9e95f0b3fdc53193dc8c42fbe (diff)
downloadrust-d5fe5831ecc82d2705110810261b79ae4040c403.tar.gz
rust-d5fe5831ecc82d2705110810261b79ae4040c403.zip
Const-stabilize `Vec::new`.
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)]