File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -1413,10 +1413,6 @@ pub struct Expr<'hir> {
1413
1413
pub span : Span ,
1414
1414
}
1415
1415
1416
- // `Expr` is used a lot. Make sure it doesn't unintentionally get bigger.
1417
- #[ cfg( target_arch = "x86_64" ) ]
1418
- rustc_data_structures:: static_assert_size!( Expr <' static >, 72 ) ;
1419
-
1420
1416
impl Expr < ' _ > {
1421
1417
pub fn precedence ( & self ) -> ExprPrecedence {
1422
1418
match self . kind {
@@ -2897,3 +2893,18 @@ impl<'hir> Node<'hir> {
2897
2893
}
2898
2894
}
2899
2895
}
2896
+
2897
+ // Some nodes are used a lot. Make sure they don't unintentionally get bigger.
2898
+ #[ cfg( target_arch = "x86_64" ) ]
2899
+ mod size_asserts {
2900
+ rustc_data_structures:: static_assert_size!( super :: Block <' static >, 48 ) ;
2901
+ rustc_data_structures:: static_assert_size!( super :: Expr <' static >, 72 ) ;
2902
+ rustc_data_structures:: static_assert_size!( super :: Pat <' static >, 88 ) ;
2903
+ rustc_data_structures:: static_assert_size!( super :: QPath <' static >, 24 ) ;
2904
+ rustc_data_structures:: static_assert_size!( super :: Ty <' static >, 72 ) ;
2905
+
2906
+ rustc_data_structures:: static_assert_size!( super :: Item <' static >, 208 ) ;
2907
+ rustc_data_structures:: static_assert_size!( super :: TraitItem <' static >, 152 ) ;
2908
+ rustc_data_structures:: static_assert_size!( super :: ImplItem <' static >, 168 ) ;
2909
+ rustc_data_structures:: static_assert_size!( super :: ForeignItem <' static >, 160 ) ;
2910
+ }
You can’t perform that action at this time.
0 commit comments