1
Fork 0

Use ThinVec in ast::PatKind::Struct.

This commit is contained in:
Nicholas Nethercote 2023-01-30 14:58:23 +11:00
parent 1807027248
commit 912b825002
5 changed files with 61 additions and 61 deletions

View file

@ -486,7 +486,7 @@ impl<'a> ExtCtxt<'a> {
&self,
span: Span,
path: ast::Path,
field_pats: Vec<ast::PatField>,
field_pats: ThinVec<ast::PatField>,
) -> P<ast::Pat> {
self.pat(span, PatKind::Struct(None, path, field_pats, false))
}