Skip to content

Commit

Permalink
syntax: Add an assert for doc comment size
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Dec 3, 2019
1 parent f577b0e commit 8d2f467
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libsyntax/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2411,6 +2411,10 @@ pub enum AttrKind {
DocComment(Symbol),
}

// Receive notifications about the doc comment size changes.
#[cfg(target_arch = "x86_64")]
rustc_data_structures::static_assert_size!(AttrKind, 72);

/// `TraitRef`s appear in impls.
///
/// Resolution maps each `TraitRef`'s `ref_id` to its defining trait; that's all
Expand Down

0 comments on commit 8d2f467

Please sign in to comment.