about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-08-10 10:06:38 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-08-10 11:51:22 +1000
commit0658e8cbcaa6f5d3952a0958ab7657fc8bba32d9 (patch)
tree8e33cb0e8b63db2b2de8039479d302e337ac5365
parent574ba831d426b7c72279906a3dfd38ae5af53dce (diff)
downloadrust-0658e8cbcaa6f5d3952a0958ab7657fc8bba32d9.tar.gz
rust-0658e8cbcaa6f5d3952a0958ab7657fc8bba32d9.zip
Add a couple more AST node size assertions.
-rw-r--r--compiler/rustc_ast/src/ast.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs
index 5e8fd508f56..28862dbb267 100644
--- a/compiler/rustc_ast/src/ast.rs
+++ b/compiler/rustc_ast/src/ast.rs
@@ -3032,11 +3032,13 @@ mod size_asserts {
     use super::*;
     use rustc_data_structures::static_assert_size;
     // These are in alphabetical order, which is easy to maintain.
+    static_assert_size!(AssocItem, 160);
     static_assert_size!(AssocItemKind, 72);
     static_assert_size!(Attribute, 152);
     static_assert_size!(Block, 48);
     static_assert_size!(Expr, 104);
     static_assert_size!(Fn, 192);
+    static_assert_size!(ForeignItem, 160);
     static_assert_size!(ForeignItemKind, 72);
     static_assert_size!(GenericBound, 88);
     static_assert_size!(Generics, 72);