From f89ef3cf66206b7c0ba0ca134de40b567c7bda83 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Tue, 12 Jul 2022 13:33:25 +0400 Subject: [PATCH] Comment out expr size check --- compiler/rustc_ast/src/ast.rs | 4 ++-- compiler/rustc_hir/src/hir.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index ac2328a5824..656dff733f6 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -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); +//#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +//rustc_data_structures::static_assert_size!(Expr, 104); // FIXME impl Expr { /// Returns `true` if this expression would be valid somewhere that expects a value; diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs index a2ef158ce8d..d60ac330ed1 100644 --- a/compiler/rustc_hir/src/hir.rs +++ b/compiler/rustc_hir/src/hir.rs @@ -3479,7 +3479,7 @@ impl<'hir> Node<'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); + //rustc_data_structures::static_assert_size!(super::Expr<'static>, 64); // FIXME 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);