Skip to content

Commit c122b3a

Browse files
committed
not insta-stable
1 parent 20ef0e0 commit c122b3a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/liballoc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
#![feature(pointer_methods)]
124124
#![feature(inclusive_range_fields)]
125125
#![cfg_attr(stage0, feature(generic_param_attrs))]
126+
#![feature(rustc_const_unstable)]
126127

127128
#![cfg_attr(not(test), feature(fn_traits, i128))]
128129
#![cfg_attr(test, feature(test))]

src/liballoc/vec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ impl<T> Vec<T> {
322322
/// ```
323323
#[inline]
324324
#[stable(feature = "rust1", since = "1.0.0")]
325+
#[rustc_const_unstable(feature = "const_vec_new")]
325326
pub const fn new() -> Vec<T> {
326327
Vec {
327328
buf: RawVec::empty(),

0 commit comments

Comments
 (0)