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 089debd commit 3aa4eb7Copy full SHA for 3aa4eb7
compiler/rustc_ast/src/lib.rs
@@ -8,7 +8,6 @@
8
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
9
test(attr(deny(warnings)))
10
)]
11
-#![feature(box_syntax)]
12
#![feature(box_patterns)]
13
#![cfg_attr(bootstrap, feature(const_fn_transmute))]
14
#![feature(crate_visibility_modifier)]
compiler/rustc_ast/src/ptr.rs
@@ -37,7 +37,7 @@ pub struct P<T: ?Sized> {
37
/// Construct a `P<T>` from a `T` value.
38
#[allow(non_snake_case)]
39
pub fn P<T: 'static>(value: T) -> P<T> {
40
- P { ptr: box value }
+ P { ptr: Box::new(value) }
41
}
42
43
impl<T: 'static> P<T> {
0 commit comments