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.
box
Box::new
ptr::P
1 parent 7e5f6c7 commit 25a9206Copy full SHA for 25a9206
src/libsyntax/lib.rs
@@ -12,6 +12,7 @@
12
#![deny(unused_lifetimes)]
13
14
#![feature(bind_by_move_pattern_guards)]
15
+#![feature(box_syntax)]
16
#![feature(const_fn)]
17
#![feature(const_transmute)]
18
#![feature(crate_visibility_modifier)]
src/libsyntax/ptr.rs
@@ -45,7 +45,7 @@ pub struct P<T: ?Sized> {
45
/// Construct a `P<T>` from a `T` value.
46
pub fn P<T: 'static>(value: T) -> P<T> {
47
P {
48
- ptr: Box::new(value)
+ ptr: box value
49
}
50
51
0 commit comments