| commit | 89902443e84e405c01ecbd16b8923e758f9c41dd | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Wed Dec 30 15:10:40 2020 -0800 |
| committer | David Tolnay <dtolnay@gmail.com> | Wed Dec 30 15:17:58 2020 -0800 |
| tree | 159473abd22fa98b2a075e423c5362f6063ff5e7 | |
| parent | 232a0e36302ebb07aa442cda46ea3c18b497b0b1 [diff] [blame] |
Preserve visibility token's span on struct field
diff --git a/syntax/mod.rs b/syntax/mod.rs index 0fc7a9d..8247d19 100644 --- a/syntax/mod.rs +++ b/syntax/mod.rs
@@ -148,8 +148,8 @@ pub throws_tokens: Option<(kw::Result, Token![<], Token![>])>, } -#[derive(Eq, PartialEq, Hash)] pub struct Var { + pub visibility: Token![pub], pub ident: Ident, pub ty: Type, }