| commit | b27f7877030968414af4eb49c4b97d1a3b283bce | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Sun Nov 15 15:07:04 2020 -0800 |
| committer | David Tolnay <dtolnay@gmail.com> | Sun Nov 15 15:11:21 2020 -0800 |
| tree | ce9f70a525c4057562eabfd6edb41d68730d7d5d | |
| parent | ed2c6bfc98bd697690652ae28639434efeed4461 [diff] [blame] |
Represent Pin<P> in syntax tree
diff --git a/syntax/parse.rs b/syntax/parse.rs index a8a76d0..b275b5d 100644 --- a/syntax/parse.rs +++ b/syntax/parse.rs
@@ -18,6 +18,7 @@ }; pub mod kw { + syn::custom_keyword!(Pin); syn::custom_keyword!(Result); } @@ -625,10 +626,12 @@ _ => Type::Ref, }; Ok(which(Box::new(Ref { + pinned: false, ampersand: ty.and_token, lifetime: ty.lifetime.clone(), mutability: ty.mutability, inner, + pin_tokens: None, }))) }