Skip to content

Commit

Permalink
Vec::new is const tstable in 1.39 not 1.32
Browse files Browse the repository at this point in the history
  • Loading branch information
CAD97 authored Mar 10, 2020
1 parent 3dbade6 commit a561962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ impl<T> Vec<T> {
/// let mut vec: Vec<i32> = Vec::new();
/// ```
#[inline]
#[rustc_const_stable(feature = "const_vec_new", since = "1.32.0")]
#[rustc_const_stable(feature = "const_vec_new", since = "1.39.0")]
#[stable(feature = "rust1", since = "1.0.0")]
pub const fn new() -> Vec<T> {
Vec { buf: RawVec::NEW, len: 0 }
Expand Down

0 comments on commit a561962

Please sign in to comment.