@@ -1657,6 +1657,9 @@ pub struct Place<'tcx> {
1657
1657
pub projection : & ' tcx List < PlaceElem < ' tcx > > ,
1658
1658
}
1659
1659
1660
+ #[ cfg( target_arch = "x86_64" ) ]
1661
+ static_assert_size ! ( Place <' _>, 16 ) ;
1662
+
1660
1663
#[ derive( Copy , Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
1661
1664
#[ derive( TyEncodable , TyDecodable , HashStable ) ]
1662
1665
pub enum ProjectionElem < V , T > {
@@ -1955,6 +1958,9 @@ pub enum Operand<'tcx> {
1955
1958
Constant ( Box < Constant < ' tcx > > ) ,
1956
1959
}
1957
1960
1961
+ #[ cfg( target_arch = "x86_64" ) ]
1962
+ static_assert_size ! ( Operand <' _>, 24 ) ;
1963
+
1958
1964
impl < ' tcx > Debug for Operand < ' tcx > {
1959
1965
fn fmt ( & self , fmt : & mut Formatter < ' _ > ) -> fmt:: Result {
1960
1966
use self :: Operand :: * ;
@@ -2090,6 +2096,9 @@ pub enum Rvalue<'tcx> {
2090
2096
Aggregate ( Box < AggregateKind < ' tcx > > , Vec < Operand < ' tcx > > ) ,
2091
2097
}
2092
2098
2099
+ #[ cfg( target_arch = "x86_64" ) ]
2100
+ static_assert_size ! ( Rvalue <' _>, 56 ) ;
2101
+
2093
2102
#[ derive( Clone , Copy , Debug , PartialEq , Eq , TyEncodable , TyDecodable , Hash , HashStable ) ]
2094
2103
pub enum CastKind {
2095
2104
Misc ,
@@ -2113,6 +2122,9 @@ pub enum AggregateKind<'tcx> {
2113
2122
Generator ( DefId , SubstsRef < ' tcx > , hir:: Movability ) ,
2114
2123
}
2115
2124
2125
+ #[ cfg( target_arch = "x86_64" ) ]
2126
+ static_assert_size ! ( AggregateKind <' _>, 48 ) ;
2127
+
2116
2128
#[ derive( Copy , Clone , Debug , PartialEq , PartialOrd , Eq , TyEncodable , TyDecodable , Hash , HashStable ) ]
2117
2129
pub enum BinOp {
2118
2130
/// The `+` operator (addition)
0 commit comments