diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-01-30 15:39:22 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-21 11:51:56 +1100 |
| commit | 7e855d5f3112f59fea95c900297daff8d342056f (patch) | |
| tree | de330d738da96d476acb36ff33b2d09873fd9566 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 549f1c60af3bdd0e1e6929870d64b716e4e5c8e5 (diff) | |
| download | rust-7e855d5f3112f59fea95c900297daff8d342056f.tar.gz rust-7e855d5f3112f59fea95c900297daff8d342056f.zip | |
Use `ThinVec` in a few more AST types.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index c92379754bf..12f65a436e3 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -2935,8 +2935,8 @@ impl<'a> Parser<'a> { pth: ast::Path, recover: bool, close_delim: Delimiter, - ) -> PResult<'a, (Vec<ExprField>, ast::StructRest, bool)> { - let mut fields = Vec::new(); + ) -> PResult<'a, (ThinVec<ExprField>, ast::StructRest, bool)> { + let mut fields = ThinVec::new(); let mut base = ast::StructRest::None; let mut recover_async = false; |
