about summary refs log tree commit diff
path: root/compiler/rustc_ast/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-01-30 15:10:59 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-02-21 11:51:56 +1100
commit549f1c60af3bdd0e1e6929870d64b716e4e5c8e5 (patch)
tree45bcea968b8a6ba36d4b059f032cd3a80244f63f /compiler/rustc_ast/src
parent912b82500276bae6c1bbef2028b836edbf5ca9eb (diff)
downloadrust-549f1c60af3bdd0e1e6929870d64b716e4e5c8e5.tar.gz
rust-549f1c60af3bdd0e1e6929870d64b716e4e5c8e5.zip
Use `ThinVec` in `ast::ExprKind::Match`.
Diffstat (limited to 'compiler/rustc_ast/src')
-rw-r--r--compiler/rustc_ast/src/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs
index 48a86b2753a..de6a0b563eb 100644
--- a/compiler/rustc_ast/src/ast.rs
+++ b/compiler/rustc_ast/src/ast.rs
@@ -1414,7 +1414,7 @@ pub enum ExprKind {
     /// `'label: loop { block }`
     Loop(P<Block>, Option<Label>, Span),
     /// A `match` block.
-    Match(P<Expr>, Vec<Arm>),
+    Match(P<Expr>, ThinVec<Arm>),
     /// A closure (e.g., `move |a, b, c| a + b + c`).
     Closure(Box<Closure>),
     /// A block (`'label: { ... }`).