Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1cd1cd0

Browse files
committed
Remove box syntax from rustc_ast
1 parent 8b0b7ef commit 1cd1cd0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

compiler/rustc_ast/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
99
test(attr(deny(warnings)))
1010
)]
11-
#![feature(box_syntax)]
1211
#![feature(box_patterns)]
1312
#![cfg_attr(bootstrap, feature(const_fn_transmute))]
1413
#![feature(crate_visibility_modifier)]

compiler/rustc_ast/src/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub struct P<T: ?Sized> {
3737
/// Construct a `P<T>` from a `T` value.
3838
#[allow(non_snake_case)]
3939
pub fn P<T: 'static>(value: T) -> P<T> {
40-
P { ptr: box value }
40+
P { ptr: Box::new(value) }
4141
}
4242

4343
impl<T: 'static> P<T> {

0 commit comments

Comments
 (0)