| commit | 9c76c3979f0cf3c86ccf963b70a76c94d8544f71 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Sun Nov 15 16:07:08 2020 -0800 |
| committer | David Tolnay <dtolnay@gmail.com> | Sun Nov 15 16:07:14 2020 -0800 |
| tree | fbfdd92a4c527ad056326965112736133848b8f8 | |
| parent | db42cfd587a75288212bb2a0cc66b6ff383ce960 [diff] [blame] |
Parse pinned method receivers
diff --git a/syntax/mod.rs b/syntax/mod.rs index 72e815b..51068c9 100644 --- a/syntax/mod.rs +++ b/syntax/mod.rs
@@ -134,12 +134,14 @@ } pub struct Receiver { + pub pinned: bool, pub ampersand: Token![&], pub lifetime: Option<Lifetime>, pub mutability: Option<Token![mut]>, pub var: Token![self], pub ty: ResolvableName, pub shorthand: bool, + pub pin_tokens: Option<(kw::Pin, Token![<], Token![>])>, } pub struct Variant {