Skip to content

Commit 9f16f1f

Browse files
committed
Add an size assertion.
`Option<LazyAttrTokenStream>` is the type that's actually used in all the aST nodes.
1 parent 022582c commit 9f16f1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_ast/src/tokenstream.rs

+1
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,7 @@ mod size_asserts {
765765
static_assert_size!(AttrTokenStream, 8);
766766
static_assert_size!(AttrTokenTree, 32);
767767
static_assert_size!(LazyAttrTokenStream, 8);
768+
static_assert_size!(Option<LazyAttrTokenStream>, 8); // must be small, used in many AST nodes
768769
static_assert_size!(TokenStream, 8);
769770
static_assert_size!(TokenTree, 32);
770771
// tidy-alphabetical-end

0 commit comments

Comments
 (0)