diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-07 13:15:58 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-10 08:35:23 +0100 |
| commit | d1822b3dcf9b02904506dd00bc783adbdb92fc72 (patch) | |
| tree | 5a20fcd6925ede05861c3dc55ff657ca9b8f26c4 /src/librustc_parse/parser/expr.rs | |
| parent | c0b073bc625d2178255876bc10834f46837ba773 (diff) | |
| download | rust-d1822b3dcf9b02904506dd00bc783adbdb92fc72.tar.gz rust-d1822b3dcf9b02904506dd00bc783adbdb92fc72.zip | |
use check_path more
Diffstat (limited to 'src/librustc_parse/parser/expr.rs')
| -rw-r--r-- | src/librustc_parse/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/expr.rs b/src/librustc_parse/parser/expr.rs index 826213ba450..a41beb77119 100644 --- a/src/librustc_parse/parser/expr.rs +++ b/src/librustc_parse/parser/expr.rs @@ -919,7 +919,7 @@ impl<'a> Parser<'a> { } else if self.eat_lt() { let (qself, path) = self.parse_qpath(PathStyle::Expr)?; Ok(self.mk_expr(lo.to(path.span), ExprKind::Path(Some(qself), path), attrs)) - } else if self.token.is_path_start() { + } else if self.check_path() { self.parse_path_start_expr(attrs) } else if self.check_keyword(kw::Move) || self.check_keyword(kw::Static) { self.parse_closure_expr(attrs) |
