Detect match arm body without braces

Fix #82524.
This commit is contained in:
Esteban Küber
2021-02-25 19:29:50 -08:00
parent 795a934b51
commit ae494d147a
4 changed files with 334 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ impl<'a> Parser<'a> {
/// If `force_capture` is true, forces collection of tokens regardless of whether
/// or not we have attributes
fn parse_stmt_without_recovery(
crate fn parse_stmt_without_recovery(
&mut self,
capture_semi: bool,
force_collect: ForceCollect,