diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2023-04-16 07:25:13 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2023-04-16 07:25:13 +0000 |
| commit | ede7bc032a7a447ffce7a4c3fc1b1fc72842386b (patch) | |
| tree | 1bc640dce7fbc2cdd5090e914deeb444611a7a92 | |
| parent | 4ecbd3be5204e896d1cbb0d28b157699bf89caa3 (diff) | |
| download | rust-ede7bc032a7a447ffce7a4c3fc1b1fc72842386b.tar.gz rust-ede7bc032a7a447ffce7a4c3fc1b1fc72842386b.zip | |
make rustc compilable
| -rw-r--r-- | compiler/rustc_ast/src/lib.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_ast/src/ptr.rs | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast/src/lib.rs b/compiler/rustc_ast/src/lib.rs index 23c32fa96ca..b07ed1d1c74 100644 --- a/compiler/rustc_ast/src/lib.rs +++ b/compiler/rustc_ast/src/lib.rs @@ -10,7 +10,6 @@ )] #![feature(associated_type_bounds)] #![feature(box_patterns)] -#![feature(const_default_impls)] #![feature(const_trait_impl)] #![feature(if_let_guard)] #![feature(let_chains)] diff --git a/compiler/rustc_ast/src/ptr.rs b/compiler/rustc_ast/src/ptr.rs index 4b2850336a0..0140fb752bf 100644 --- a/compiler/rustc_ast/src/ptr.rs +++ b/compiler/rustc_ast/src/ptr.rs @@ -126,7 +126,8 @@ impl<S: Encoder, T: Encodable<S>> Encodable<S> for P<T> { } impl<T> P<[T]> { - pub const fn new() -> P<[T]> { + // FIXME(const-hack) make this const again + pub fn new() -> P<[T]> { P { ptr: Box::default() } } |
