about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorMark Mansi <markm@cs.wisc.edu>2018-04-26 22:38:39 -0500
committerMark Mansi <markm@cs.wisc.edu>2018-04-26 22:38:39 -0500
commitc122b3a42c5dd57682be353cb9433241f67ab9cb (patch)
treed97a03970109b44ff4e23977a1a9ca85888860ca /src/liballoc
parent20ef0e001a1620436073d01f43a4a462d1967902 (diff)
downloadrust-c122b3a42c5dd57682be353cb9433241f67ab9cb.tar.gz
rust-c122b3a42c5dd57682be353cb9433241f67ab9cb.zip
not insta-stable
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/lib.rs1
-rw-r--r--src/liballoc/vec.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index 6399be98cd5..c4950786265 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -123,6 +123,7 @@
 #![feature(pointer_methods)]
 #![feature(inclusive_range_fields)]
 #![cfg_attr(stage0, feature(generic_param_attrs))]
+#![feature(rustc_const_unstable)]
 
 #![cfg_attr(not(test), feature(fn_traits, i128))]
 #![cfg_attr(test, feature(test))]
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index 1d95f76fd77..415d75664ff 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -322,6 +322,7 @@ impl<T> Vec<T> {
     /// ```
     #[inline]
     #[stable(feature = "rust1", since = "1.0.0")]
+    #[rustc_const_unstable(feature = "const_vec_new")]
     pub const fn new() -> Vec<T> {
         Vec {
             buf: RawVec::empty(),