diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-10 06:47:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-10 06:47:59 +0100 |
| commit | 3e9efbd8b409faeaf97943699ce2a15ffb8fc629 (patch) | |
| tree | 1f4a4549551e14c95a31a995a46a57536212e686 /src/liballoc | |
| parent | 20361bd2bfe1dfc1e13a2253ef0a76134a25ebe2 (diff) | |
| parent | a56196205b1919bee851bdfd7e76e9b3ae5090db (diff) | |
| download | rust-3e9efbd8b409faeaf97943699ce2a15ffb8fc629.tar.gz rust-3e9efbd8b409faeaf97943699ce2a15ffb8fc629.zip | |
Rollup merge of #69877 - CAD97:patch-1, r=dtolnay
Vec::new is const stable in 1.39 not 1.32 Changelog: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1390-2019-11-07 This really surprised me when a MSRV check for 1.35 failed with `Vec::new is not yet stable as a const fn` and the docs said that it was const stabilized in 1.32.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 61416f2b906..f661b830428 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -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 } |
