bool->enum for ast::PatKind::Struct presence of ..

See cee794ee98/compiler/rustc_parse/src/parser/pat.rs (L890-L897) for the only place this is constructed.
This commit is contained in:
Alona Enraght-Moony 2023-12-22 23:29:20 +00:00
parent 062845421b
commit d72771ffeb

View File

@ -293,7 +293,7 @@ fn extend_with_struct_pat(
qself1: &Option<P<ast::QSelf>>, qself1: &Option<P<ast::QSelf>>,
path1: &ast::Path, path1: &ast::Path,
fps1: &mut [ast::PatField], fps1: &mut [ast::PatField],
rest1: bool, rest1: ast::PatFieldsRest,
start: usize, start: usize,
alternatives: &mut ThinVec<P<Pat>>, alternatives: &mut ThinVec<P<Pat>>,
) -> bool { ) -> bool {