diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-02-15 01:50:26 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-02-15 20:57:12 +0100 |
| commit | f8d2264463162291f5cb3391c98d7bc95ec17d87 (patch) | |
| tree | 513c6f3eae554053189a205993fe56db960b6462 /src/libsyntax/ast.rs | |
| parent | 1c2906ead3825c013ac022249f1e1ee3a3b97c75 (diff) | |
| download | rust-f8d2264463162291f5cb3391c98d7bc95ec17d87.tar.gz rust-f8d2264463162291f5cb3391c98d7bc95ec17d87.zip | |
parse associated statics.
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index bbb629012a9..ca39fbd6c5d 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -2654,6 +2654,8 @@ pub enum AssocItemKind { /// A constant, `const $ident: $ty $def?;` where `def ::= "=" $expr? ;`. /// If `def` is parsed, then the constant is provided, and otherwise required. Const(P<Ty>, Option<P<Expr>>), + /// A static item (`static FOO: u8`). + Static(P<Ty>, Mutability, Option<P<Expr>>), /// A function. Fn(FnSig, Generics, Option<P<Block>>), /// A type. |
