Add back expr size checks
This commit is contained in:
parent
df4fee9841
commit
d2923b4007
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user