about summary refs log tree commit diff
path: root/src/libsyntax/ptr.rs
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2019-06-12 09:41:00 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2019-07-01 14:34:34 +0300
commitc6374cfbe2de22e46b4e7687fa733549114bf070 (patch)
tree3ad735e3433945a41af49922e6c76c3a3b51602d /src/libsyntax/ptr.rs
parent25a920648a3b616469422ea0a9689297f108e8e3 (diff)
downloadrust-c6374cfbe2de22e46b4e7687fa733549114bf070.tar.gz
rust-c6374cfbe2de22e46b4e7687fa733549114bf070.zip
rustc: use a separate copy of P for HIR than for AST.
Diffstat (limited to 'src/libsyntax/ptr.rs')
-rw-r--r--src/libsyntax/ptr.rs2
1 files changed, 1 insertions, 1 deletions
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<T: ?Sized> {
     ptr: Box<T>
 }
 
-#[allow(non_snake_case)]
 /// Construct a `P<T>` from a `T` value.
+#[allow(non_snake_case)]
 pub fn P<T: 'static>(value: T) -> P<T> {
     P {
         ptr: box value