Use ThinVec
in ast::PatKind::Struct
.
This commit is contained in:
parent
1807027248
commit
912b825002
5 changed files with 61 additions and 61 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue