diff options
Diffstat (limited to 'src/libsyntax/ptr.rs')
| -rw-r--r-- | src/libsyntax/ptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ptr.rs b/src/libsyntax/ptr.rs index 5032cd57eeb..83e321f110c 100644 --- a/src/libsyntax/ptr.rs +++ b/src/libsyntax/ptr.rs @@ -52,7 +52,7 @@ pub struct P<T> { /// Construct a `P<T>` from a `T` value. pub fn P<T: 'static>(value: T) -> P<T> { P { - ptr: box value + ptr: Box::new(value) } } |
