Rollup merge of #110750 - scottmcm:vardebug-size, r=cjgillot

Add size asserts for MIR `SourceScopeData` & `VarDebugInfo`

There's vectors of both of these in `mir::Body`, so might as well track them.

(I was pondering adding something to one or the other, so wanted this to see the memory impact.)
This commit is contained in:
Yuki Okushi 2023-04-25 02:33:31 +09:00 committed by GitHub
commit 16fdef7868
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3096,9 +3096,11 @@ mod size_asserts {
// tidy-alphabetical-start
static_assert_size!(BasicBlockData<'_>, 144);
static_assert_size!(LocalDecl<'_>, 40);
static_assert_size!(SourceScopeData<'_>, 72);
static_assert_size!(Statement<'_>, 32);
static_assert_size!(StatementKind<'_>, 16);
static_assert_size!(Terminator<'_>, 112);
static_assert_size!(TerminatorKind<'_>, 96);
static_assert_size!(VarDebugInfo<'_>, 80);
// tidy-alphabetical-end
}