Skip to content

Commit

Permalink
Add some more THIR size assertions.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Aug 24, 2022
1 parent e3755c1 commit 5a41eb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/rustc_middle/src/thir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,9 @@ mod size_asserts {
// These are in alphabetical order, which is easy to maintain.
static_assert_size!(Block, 56);
static_assert_size!(Expr<'_>, 64);
static_assert_size!(ExprKind<'_>, 40);
static_assert_size!(Pat<'_>, 24);
static_assert_size!(PatKind<'_>, 112);
static_assert_size!(Stmt<'_>, 72);
static_assert_size!(StmtKind<'_>, 64);
}

0 comments on commit 5a41eb8

Please sign in to comment.