Expand the HIR (and AST) size assertions.
This commit is contained in:
parent
9ee0192095
commit
854219d2ad
@ -3047,6 +3047,7 @@ mod size_asserts {
|
||||
static_assert_size!(Fn, 192);
|
||||
static_assert_size!(ForeignItem, 96);
|
||||
static_assert_size!(ForeignItemKind, 24);
|
||||
static_assert_size!(GenericArg, 24);
|
||||
static_assert_size!(GenericBound, 88);
|
||||
static_assert_size!(Generics, 72);
|
||||
static_assert_size!(Impl, 200);
|
||||
@ -3054,6 +3055,8 @@ mod size_asserts {
|
||||
static_assert_size!(ItemKind, 112);
|
||||
static_assert_size!(Lit, 48);
|
||||
static_assert_size!(LitKind, 24);
|
||||
static_assert_size!(Local, 72);
|
||||
static_assert_size!(Param, 40);
|
||||
static_assert_size!(Pat, 120);
|
||||
static_assert_size!(PatKind, 96);
|
||||
static_assert_size!(Path, 40);
|
||||
|
@ -3495,16 +3495,32 @@ pub fn tuple_fields(&self) -> Option<&'hir [FieldDef<'hir>]> {
|
||||
mod size_asserts {
|
||||
use super::*;
|
||||
// These are in alphabetical order, which is easy to maintain.
|
||||
static_assert_size!(Block<'static>, 48);
|
||||
static_assert_size!(Expr<'static>, 56);
|
||||
static_assert_size!(ForeignItem<'static>, 72);
|
||||
static_assert_size!(Block<'_>, 48);
|
||||
static_assert_size!(Body<'_>, 80);
|
||||
static_assert_size!(Expr<'_>, 56);
|
||||
static_assert_size!(ExprKind<'_>, 40);
|
||||
static_assert_size!(FnDecl<'_>, 40);
|
||||
static_assert_size!(ForeignItem<'_>, 72);
|
||||
static_assert_size!(ForeignItemKind<'_>, 40);
|
||||
static_assert_size!(GenericArg<'_>, 80);
|
||||
static_assert_size!(GenericBound<'_>, 48);
|
||||
static_assert_size!(Generics<'static>, 56);
|
||||
static_assert_size!(ImplItem<'static>, 88);
|
||||
static_assert_size!(Impl<'static>, 80);
|
||||
static_assert_size!(Item<'static>, 80);
|
||||
static_assert_size!(Pat<'static>, 88);
|
||||
static_assert_size!(QPath<'static>, 24);
|
||||
static_assert_size!(TraitItem<'static>, 96);
|
||||
static_assert_size!(Ty<'static>, 72);
|
||||
static_assert_size!(Generics<'_>, 56);
|
||||
static_assert_size!(Impl<'_>, 80);
|
||||
static_assert_size!(ImplItem<'_>, 88);
|
||||
static_assert_size!(ImplItemKind<'_>, 40);
|
||||
static_assert_size!(Item<'_>, 80);
|
||||
static_assert_size!(ItemKind<'_>, 48);
|
||||
static_assert_size!(Local<'_>, 64);
|
||||
static_assert_size!(Param<'_>, 32);
|
||||
static_assert_size!(Pat<'_>, 88);
|
||||
static_assert_size!(PatKind<'_>, 64);
|
||||
static_assert_size!(Path<'_>, 48);
|
||||
static_assert_size!(PathSegment<'_>, 56);
|
||||
static_assert_size!(QPath<'_>, 24);
|
||||
static_assert_size!(Stmt<'_>, 32);
|
||||
static_assert_size!(StmtKind<'_>, 16);
|
||||
static_assert_size!(TraitItem<'_>, 96);
|
||||
static_assert_size!(TraitItemKind<'_>, 56);
|
||||
static_assert_size!(Ty<'_>, 72);
|
||||
static_assert_size!(TyKind<'_>, 56);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user