diff options
| author | Yuki Okushi <huyuumi.dev+love@gmail.com> | 2022-11-20 13:15:59 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-20 13:15:59 +0900 |
| commit | 28034bb2f88105c0810a99cd345853e51a650c27 (patch) | |
| tree | c37b9e784046a68cc1abad86f44949c0b1cc671d /compiler/rustc_parse/src | |
| parent | 3e937d02a012dbce129cc7773517a9bb24f5bf93 (diff) | |
| parent | 825b8db34ad908298fd8200a8fecfb7bdc146bdc (diff) | |
| download | rust-28034bb2f88105c0810a99cd345853e51a650c27.tar.gz rust-28034bb2f88105c0810a99cd345853e51a650c27.zip | |
Rollup merge of #104608 - Nilstrieb:fixmed, r=compiler-errors
Cleanup macro matching recovery The retry has been implemented already in #104335. Also removes a `HACK` comment that's not really needed anymore because the "don't recover during macro matching" isn't really a hack but correct behavior.
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 9f680a60613..fe7401786a0 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -2078,12 +2078,7 @@ impl<'a> Parser<'a> { if self.token.kind == TokenKind::Semi && matches!(self.token_cursor.frame.delim_sp, Some((Delimiter::Parenthesis, _))) - // HACK: This is needed so we can detect whether we're inside a macro, - // where regular assumptions about what tokens can follow other tokens - // don't necessarily apply. && self.may_recover() - // FIXME(Nilstrieb): Remove this check once `may_recover` actually stops recovery - && self.subparser_name.is_none() { // It is likely that the closure body is a block but where the // braces have been removed. We will recover and eat the next |
