Add an size assertion.

`Option<LazyAttrTokenStream>` is the type that's actually used in all
the aST nodes.
This commit is contained in:
Nicholas Nethercote 2024-07-07 16:25:22 +10:00
parent 022582ca46
commit 9f16f1f6f6

View file

@ -765,6 +765,7 @@ mod size_asserts {
static_assert_size!(AttrTokenStream, 8);
static_assert_size!(AttrTokenTree, 32);
static_assert_size!(LazyAttrTokenStream, 8);
static_assert_size!(Option<LazyAttrTokenStream>, 8); // must be small, used in many AST nodes
static_assert_size!(TokenStream, 8);
static_assert_size!(TokenTree, 32);
// tidy-alphabetical-end