1
Fork 0

refactor pat parser method names/doc-comments to agree with RFC 3637

This commit is contained in:
Max Niederman 2024-08-22 22:05:48 -07:00 committed by Nadrieril
parent f8e50d8736
commit 35bbc45f16
5 changed files with 23 additions and 22 deletions

View file

@ -990,7 +990,7 @@ pub fn parse_ast_fragment<'a>(
}
}
AstFragmentKind::Ty => AstFragment::Ty(this.parse_ty()?),
AstFragmentKind::Pat => AstFragment::Pat(this.parse_pat_allow_top_alt(
AstFragmentKind::Pat => AstFragment::Pat(this.parse_pat_no_top_guard(
None,
RecoverComma::No,
RecoverColon::Yes,