diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index ea79782ece1..2ddcb9ef844 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -2663,6 +2663,7 @@ pub struct TraitKind( pub GenericBounds, pub Vec
>, ); + #[derive(Clone, Encodable, Decodable, Debug)] pub struct TyAliasKind(pub Defaultness, pub Generics, pub GenericBounds, pub Option
>);
@@ -2753,6 +2754,9 @@ pub enum ItemKind {
MacroDef(MacroDef),
}
+#[cfg(target_arch = "x86_64")]
+rustc_data_structures::static_assert_size!(ItemKind, 112);
+
impl ItemKind {
pub fn article(&self) -> &str {
use ItemKind::*;
@@ -2824,6 +2828,9 @@ pub enum AssocItemKind {
MacCall(MacCall),
}
+#[cfg(target_arch = "x86_64")]
+rustc_data_structures::static_assert_size!(AssocItemKind, 72);
+
impl AssocItemKind {
pub fn defaultness(&self) -> Defaultness {
match *self {
@@ -2873,6 +2880,9 @@ pub enum ForeignItemKind {
MacCall(MacCall),
}
+#[cfg(target_arch = "x86_64")]
+rustc_data_structures::static_assert_size!(ForeignItemKind, 72);
+
impl From