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 4ecbd3b commit ede7bc0Copy full SHA for ede7bc0
compiler/rustc_ast/src/lib.rs
@@ -10,7 +10,6 @@
10
)]
11
#![feature(associated_type_bounds)]
12
#![feature(box_patterns)]
13
-#![feature(const_default_impls)]
14
#![feature(const_trait_impl)]
15
#![feature(if_let_guard)]
16
#![feature(let_chains)]
compiler/rustc_ast/src/ptr.rs
@@ -126,7 +126,8 @@ impl<S: Encoder, T: Encodable<S>> Encodable<S> for P<T> {
126
}
127
128
impl<T> P<[T]> {
129
- pub const fn new() -> P<[T]> {
+ // FIXME(const-hack) make this const again
130
+ pub fn new() -> P<[T]> {
131
P { ptr: Box::default() }
132
133
0 commit comments