diff options
Diffstat (limited to 'gcc/rust/parse/rust-parse-impl.h')
-rw-r--r-- | gcc/rust/parse/rust-parse-impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index 340fea7..122a3c3 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -7085,7 +7085,7 @@ Parser<ManagedTokenSource>::parse_expr_with_block (AST::AttrVec outer_attrs) break; case WHILE: { // while or while let, so more lookahead to find out - if (lexer.peek_token ()->get_id () == LET) + if (lexer.peek_token (1)->get_id () == LET) { // while let loop expr expr_parsed = parse_while_let_loop_expr (std::move (outer_attrs)); |