parse guard patterns
Co-authored-by: Max Niederman <max@maxniederman.com>
This commit is contained in:
parent
f86915a682
commit
962c0140c7
17 changed files with 248 additions and 63 deletions
|
@ -990,7 +990,7 @@ pub fn parse_ast_fragment<'a>(
|
|||
}
|
||||
}
|
||||
AstFragmentKind::Ty => AstFragment::Ty(this.parse_ty()?),
|
||||
AstFragmentKind::Pat => AstFragment::Pat(this.parse_pat_no_top_guard(
|
||||
AstFragmentKind::Pat => AstFragment::Pat(this.parse_pat_allow_top_guard(
|
||||
None,
|
||||
RecoverComma::No,
|
||||
RecoverColon::Yes,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue