diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-01-30 14:13:27 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-21 11:51:56 +1100 |
| commit | b14b7ba5dd13c76834a6a3bcab3f600a1d1b198d (patch) | |
| tree | 9bf5ece6c9b1d0cd6e6f7bbc16f6929c747d4233 /compiler/rustc_ast/src | |
| parent | 4143b101f9b0949c4bc6db1124f86ef02b1ef7aa (diff) | |
| download | rust-b14b7ba5dd13c76834a6a3bcab3f600a1d1b198d.tar.gz rust-b14b7ba5dd13c76834a6a3bcab3f600a1d1b198d.zip | |
Use `ThinVec` in `ast::Block`.
Diffstat (limited to 'compiler/rustc_ast/src')
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index b46d69a3758..e485bdc0972 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -531,7 +531,7 @@ pub enum NestedMetaItem { #[derive(Clone, Encodable, Decodable, Debug)] pub struct Block { /// The statements in the block. - pub stmts: Vec<Stmt>, + pub stmts: ThinVec<Stmt>, pub id: NodeId, /// Distinguishes between `unsafe { ... }` and `{ ... }`. pub rules: BlockCheckMode, @@ -3112,7 +3112,7 @@ mod size_asserts { static_assert_size!(AssocItem, 104); static_assert_size!(AssocItemKind, 32); static_assert_size!(Attribute, 32); - static_assert_size!(Block, 48); + static_assert_size!(Block, 32); static_assert_size!(Expr, 72); static_assert_size!(ExprKind, 40); static_assert_size!(Fn, 152); |
