diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-01-30 14:58:23 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-21 11:51:56 +1100 |
| commit | 912b82500276bae6c1bbef2028b836edbf5ca9eb (patch) | |
| tree | 31f0d8f64d3cf5f172348df5fef5d7e93568a3c8 /compiler/rustc_ast/src | |
| parent | 1807027248f57d98a1490bfbe9eb3d3de944e60f (diff) | |
| download | rust-912b82500276bae6c1bbef2028b836edbf5ca9eb.tar.gz rust-912b82500276bae6c1bbef2028b836edbf5ca9eb.zip | |
Use `ThinVec` in `ast::PatKind::Struct`.
Diffstat (limited to 'compiler/rustc_ast/src')
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index 79cb2c946c8..48a86b2753a 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -722,7 +722,7 @@ pub enum PatKind { /// A struct or struct variant pattern (e.g., `Variant {x, y, ..}`). /// The `bool` is `true` in the presence of a `..`. - Struct(Option<P<QSelf>>, Path, Vec<PatField>, /* recovered */ bool), + Struct(Option<P<QSelf>>, Path, ThinVec<PatField>, /* recovered */ bool), /// A tuple struct/variant pattern (`Variant(x, y, .., z)`). TupleStruct(Option<P<QSelf>>, Path, ThinVec<P<Pat>>), @@ -3128,10 +3128,10 @@ mod size_asserts { static_assert_size!(Local, 72); static_assert_size!(MetaItemLit, 40); static_assert_size!(Param, 40); - static_assert_size!(Pat, 88); + static_assert_size!(Pat, 72); static_assert_size!(Path, 24); static_assert_size!(PathSegment, 24); - static_assert_size!(PatKind, 64); + static_assert_size!(PatKind, 48); static_assert_size!(Stmt, 32); static_assert_size!(StmtKind, 16); static_assert_size!(Ty, 64); |
