File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1719,14 +1719,14 @@ pub struct Statement<'tcx> {
1719
1719
pub kind : StatementKind < ' tcx > ,
1720
1720
}
1721
1721
1722
+ // `Statement` is used a lot. Make sure it doesn't unintentionally get bigger.
1723
+ #[ cfg( target_arch = "x86_64" ) ]
1724
+ static_assert ! ( MEM_SIZE_OF_STATEMENT : mem:: size_of:: <Statement <' _>>( ) == 56 ) ;
1725
+
1722
1726
impl < ' tcx > Statement < ' tcx > {
1723
1727
/// Changes a statement to a nop. This is both faster than deleting instructions and avoids
1724
1728
/// invalidating statement indices in `Location`s.
1725
1729
pub fn make_nop ( & mut self ) {
1726
- // `Statement` contributes significantly to peak memory usage. Make
1727
- // sure it doesn't get bigger.
1728
- static_assert ! ( STATEMENT_IS_AT_MOST_56_BYTES : mem:: size_of:: <Statement <' _>>( ) <= 56 ) ;
1729
-
1730
1730
self . kind = StatementKind :: Nop
1731
1731
}
1732
1732
You can’t perform that action at this time.
0 commit comments