Use ThinVec
in ast::Block
.
This commit is contained in:
parent
4143b101f9
commit
b14b7ba5dd
18 changed files with 92 additions and 81 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue