Add back expr size checks

This commit is contained in:
Maybe Waffle 2022-07-11 23:40:35 +04:00
parent df4fee9841
commit d2923b4007
2 changed files with 3 additions and 3 deletions

View File

@ -1112,8 +1112,8 @@ pub struct Expr {
}
// `Expr` is used a lot. Make sure it doesn't unintentionally get bigger.
//#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
//rustc_data_structures::static_assert_size!(Expr, 104); // FIXME
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
rustc_data_structures::static_assert_size!(Expr, 104);
impl Expr {
/// Returns `true` if this expression would be valid somewhere that expects a value;

View File

@ -3494,7 +3494,7 @@ pub fn tuple_fields(&self) -> Option<&'hir [FieldDef<'hir>]> {
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
mod size_asserts {
rustc_data_structures::static_assert_size!(super::Block<'static>, 48);
//rustc_data_structures::static_assert_size!(super::Expr<'static>, 64); // FIXME
rustc_data_structures::static_assert_size!(super::Expr<'static>, 56);
rustc_data_structures::static_assert_size!(super::Pat<'static>, 88);
rustc_data_structures::static_assert_size!(super::QPath<'static>, 24);
rustc_data_structures::static_assert_size!(super::Ty<'static>, 72);