1
Fork 0

async can begin expressions

This commit is contained in:
Taylor Cramer 2018-08-01 09:50:15 -07:00
parent 11f812aa7d
commit f685142f86
2 changed files with 24 additions and 0 deletions

View file

@ -104,6 +104,7 @@ pub(crate) fn ident_can_begin_expr(ident: ast::Ident, is_raw: bool) -> bool {
!ident_token.is_reserved_ident() ||
ident_token.is_path_segment_keyword() ||
[
keywords::Async.name(),
keywords::Do.name(),
keywords::Box.name(),
keywords::Break.name(),