1
Fork 0

not insta-stable

This commit is contained in:
Mark Mansi 2018-04-26 22:38:39 -05:00
parent 20ef0e001a
commit c122b3a42c
2 changed files with 2 additions and 0 deletions

View file

@ -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))]

View file

@ -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(),