We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20ef0e0 commit c122b3aCopy full SHA for c122b3a
src/liballoc/lib.rs
@@ -123,6 +123,7 @@
123
#![feature(pointer_methods)]
124
#![feature(inclusive_range_fields)]
125
#![cfg_attr(stage0, feature(generic_param_attrs))]
126
+#![feature(rustc_const_unstable)]
127
128
#![cfg_attr(not(test), feature(fn_traits, i128))]
129
#![cfg_attr(test, feature(test))]
src/liballoc/vec.rs
@@ -322,6 +322,7 @@ impl<T> Vec<T> {
322
/// ```
323
#[inline]
324
#[stable(feature = "rust1", since = "1.0.0")]
325
+ #[rustc_const_unstable(feature = "const_vec_new")]
326
pub const fn new() -> Vec<T> {
327
Vec {
328
buf: RawVec::empty(),
0 commit comments