diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-07-12 13:33:25 +0400 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-07-12 16:26:08 +0400 |
| commit | f89ef3cf66206b7c0ba0ca134de40b567c7bda83 (patch) | |
| tree | b5a8f01150346d2d5032a568c19751371a9cd007 | |
| parent | 97fcead24219bea0db1d2133ffd347760ec161d8 (diff) | |
| download | rust-f89ef3cf66206b7c0ba0ca134de40b567c7bda83.tar.gz rust-f89ef3cf66206b7c0ba0ca134de40b567c7bda83.zip | |
Comment out expr size check
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 4 | ||||
| -rw-r--r-- | 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); |
