diff options
| author | bors <bors@rust-lang.org> | 2023-12-11 00:03:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-11 00:03:56 +0000 |
| commit | a9cb8ee82132b6ef0f8db3e3bc25f98dfae08c04 (patch) | |
| tree | 87a7c129158bcc45cb80cde25b87cc0260a167fc /compiler/rustc_parse/src/parser/expr.rs | |
| parent | d86d65bbc19b928387f68427fcc3a0da498d8a19 (diff) | |
| parent | 940c885bc461afa2ec3eef901d6d685665686162 (diff) | |
| download | rust-a9cb8ee82132b6ef0f8db3e3bc25f98dfae08c04.tar.gz rust-a9cb8ee82132b6ef0f8db3e3bc25f98dfae08c04.zip | |
Auto merge of #114571 - nnethercote:improve-print_tts, r=petrochenkov
Improve `print_tts` By slightly changing the meaning of `tokenstream::Spacing` we can greatly improve the output of `print_tts`. r? `@ghost`
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 406a6def019..3c0627526be 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -2276,7 +2276,7 @@ impl<'a> Parser<'a> { } if self.token.kind == TokenKind::Semi - && matches!(self.token_cursor.stack.last(), Some((_, Delimiter::Parenthesis, _))) + && matches!(self.token_cursor.stack.last(), Some((.., Delimiter::Parenthesis))) && self.may_recover() { // It is likely that the closure body is a block but where the |
