diff options
| author | bors <bors@rust-lang.org> | 2023-08-04 05:44:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-04 05:44:54 +0000 |
| commit | 15c05fe25f48ddd2ee0efdc1ac9d24af473769b4 (patch) | |
| tree | 150c1c2779d9b093507486e92ac3ea013bc6409b /compiler/rustc_parse/src/parser/expr.rs | |
| parent | f8d75a481392b59b979350d441eed2329e68e808 (diff) | |
| parent | 1a803a0c790ade534dec44c17816eb389d7dd8ed (diff) | |
| download | rust-15c05fe25f48ddd2ee0efdc1ac9d24af473769b4.tar.gz rust-15c05fe25f48ddd2ee0efdc1ac9d24af473769b4.zip | |
Auto merge of #3012 - rust-lang:rustup-2023-08-04, r=oli-obk
Automatic sync from rustc
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index a0f447fc67b..c0459789805 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -1167,7 +1167,7 @@ impl<'a> Parser<'a> { DestructuredFloat::TrailingDot(sym, sym_span, dot_span) => { assert!(suffix.is_none()); // Analogous to `Self::break_and_eat` - self.token_cursor.break_last_token = true; + self.break_last_token = true; // This might work, in cases like `1. 2`, and might not, // in cases like `offset_of!(Ty, 1.)`. It depends on what comes // after the float-like token, and therefore we have to make @@ -2599,7 +2599,7 @@ impl<'a> Parser<'a> { // Recover from missing expression in `for` loop if matches!(expr.kind, ExprKind::Block(..)) - && !matches!(self.token.kind, token::OpenDelim(token::Delimiter::Brace)) + && !matches!(self.token.kind, token::OpenDelim(Delimiter::Brace)) && self.may_recover() { self.sess |
