diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-01-29 10:53:20 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-01-30 12:50:42 +0100 |
| commit | 6c66e11ff8121034cbc4b299f2a78410b4bf0243 (patch) | |
| tree | 5d7bf1d2e6e7cf3701b87991548e4685c92a349c /src/libsyntax/parse | |
| parent | 56473562c5ca1937ffd667c2d258f0028c734eba (diff) | |
| download | rust-6c66e11ff8121034cbc4b299f2a78410b4bf0243.tar.gz rust-6c66e11ff8121034cbc4b299f2a78410b4bf0243.zip | |
The `static` keyword can now begin expressions
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 2be93c07d5a..7fbe781e9a1 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -112,6 +112,7 @@ fn ident_can_begin_expr(ident: ast::Ident) -> bool { keywords::Unsafe.name(), keywords::While.name(), keywords::Yield.name(), + keywords::Static.name(), ].contains(&ident.name) } |
