Skip to content

Commit d2923b4

Browse files
committed
Add back expr size checks
1 parent df4fee9 commit d2923b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_ast/src/ast.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1112,8 +1112,8 @@ pub struct Expr {
11121112
}
11131113

11141114
// `Expr` is used a lot. Make sure it doesn't unintentionally get bigger.
1115-
//#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1116-
//rustc_data_structures::static_assert_size!(Expr, 104); // FIXME
1115+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1116+
rustc_data_structures::static_assert_size!(Expr, 104);
11171117

11181118
impl Expr {
11191119
/// Returns `true` if this expression would be valid somewhere that expects a value;

compiler/rustc_hir/src/hir.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3494,7 +3494,7 @@ impl<'hir> Node<'hir> {
34943494
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
34953495
mod size_asserts {
34963496
rustc_data_structures::static_assert_size!(super::Block<'static>, 48);
3497-
//rustc_data_structures::static_assert_size!(super::Expr<'static>, 64); // FIXME
3497+
rustc_data_structures::static_assert_size!(super::Expr<'static>, 56);
34983498
rustc_data_structures::static_assert_size!(super::Pat<'static>, 88);
34993499
rustc_data_structures::static_assert_size!(super::QPath<'static>, 24);
35003500
rustc_data_structures::static_assert_size!(super::Ty<'static>, 72);

0 commit comments

Comments
 (0)