diff options
| author | bors <bors@rust-lang.org> | 2018-02-03 17:28:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-02-03 17:28:08 +0000 |
| commit | 3d292b793ade0c1c9098fb32586033d79f6e9969 (patch) | |
| tree | 19349cbdf0862405b4e3f40ea8ed05cb8e2df442 /src/libsyntax/parse | |
| parent | aa0a5a86a1378193424fcf48bd7ce361ce418193 (diff) | |
| parent | 6c66e11ff8121034cbc4b299f2a78410b4bf0243 (diff) | |
| download | rust-3d292b793ade0c1c9098fb32586033d79f6e9969.tar.gz rust-3d292b793ade0c1c9098fb32586033d79f6e9969.zip | |
Auto merge of #47845 - Zoxc:gen-fixes, r=nikomatsakis
Generator bugfixes r? @nikomatsakis
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) } |
