From c6374cfbe2de22e46b4e7687fa733549114bf070 Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Wed, 12 Jun 2019 09:41:00 +0300 Subject: rustc: use a separate copy of P for HIR than for AST. --- src/libsyntax/ptr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ptr.rs b/src/libsyntax/ptr.rs index 2e282327fea..be580dc2e6a 100644 --- a/src/libsyntax/ptr.rs +++ b/src/libsyntax/ptr.rs @@ -41,8 +41,8 @@ pub struct P { ptr: Box } -#[allow(non_snake_case)] /// Construct a `P` from a `T` value. +#[allow(non_snake_case)] pub fn P(value: T) -> P { P { ptr: box value -- cgit 1.4.1-3-g733a5