Skip to content

Commit 8d2f467

Browse files
committed
syntax: Add an assert for doc comment size
1 parent f577b0e commit 8d2f467

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libsyntax/ast.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2411,6 +2411,10 @@ pub enum AttrKind {
24112411
DocComment(Symbol),
24122412
}
24132413

2414+
// Receive notifications about the doc comment size changes.
2415+
#[cfg(target_arch = "x86_64")]
2416+
rustc_data_structures::static_assert_size!(AttrKind, 72);
2417+
24142418
/// `TraitRef`s appear in impls.
24152419
///
24162420
/// Resolution maps each `TraitRef`'s `ref_id` to its defining trait; that's all

0 commit comments

Comments
 (0)