Skip to content

Commit ede7bc0

Browse files
committed
make rustc compilable
1 parent 4ecbd3b commit ede7bc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_ast/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
)]
1111
#![feature(associated_type_bounds)]
1212
#![feature(box_patterns)]
13-
#![feature(const_default_impls)]
1413
#![feature(const_trait_impl)]
1514
#![feature(if_let_guard)]
1615
#![feature(let_chains)]

compiler/rustc_ast/src/ptr.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ impl<S: Encoder, T: Encodable<S>> Encodable<S> for P<T> {
126126
}
127127

128128
impl<T> P<[T]> {
129-
pub const fn new() -> P<[T]> {
129+
// FIXME(const-hack) make this const again
130+
pub fn new() -> P<[T]> {
130131
P { ptr: Box::default() }
131132
}
132133

0 commit comments

Comments
 (0)