Skip to content

Commit 0658e8c

Browse files
committed
Add a couple more AST node size assertions.
1 parent 574ba83 commit 0658e8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_ast/src/ast.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3032,11 +3032,13 @@ mod size_asserts {
30323032
use super::*;
30333033
use rustc_data_structures::static_assert_size;
30343034
// These are in alphabetical order, which is easy to maintain.
3035+
static_assert_size!(AssocItem, 160);
30353036
static_assert_size!(AssocItemKind, 72);
30363037
static_assert_size!(Attribute, 152);
30373038
static_assert_size!(Block, 48);
30383039
static_assert_size!(Expr, 104);
30393040
static_assert_size!(Fn, 192);
3041+
static_assert_size!(ForeignItem, 160);
30403042
static_assert_size!(ForeignItemKind, 72);
30413043
static_assert_size!(GenericBound, 88);
30423044
static_assert_size!(Generics, 72);

0 commit comments

Comments
 (0)