diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-01-30 15:10:59 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-21 11:51:56 +1100 |
| commit | 549f1c60af3bdd0e1e6929870d64b716e4e5c8e5 (patch) | |
| tree | 45bcea968b8a6ba36d4b059f032cd3a80244f63f /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 912b82500276bae6c1bbef2028b836edbf5ca9eb (diff) | |
| download | rust-549f1c60af3bdd0e1e6929870d64b716e4e5c8e5.tar.gz rust-549f1c60af3bdd0e1e6929870d64b716e4e5c8e5.zip | |
Use `ThinVec` in `ast::ExprKind::Match`.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 0c397414ba1..c92379754bf 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -2566,7 +2566,7 @@ impl<'a> Parser<'a> { } let attrs = self.parse_inner_attributes()?; - let mut arms: Vec<Arm> = Vec::new(); + let mut arms = ThinVec::new(); while self.token != token::CloseDelim(Delimiter::Brace) { match self.parse_arm() { Ok(arm) => arms.push(arm), |
