Skip to content

Commit 16fdef7

Browse files
authored
Rollup merge of rust-lang#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.)
2 parents b708aad + 31531ce commit 16fdef7

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_middle/src/mir

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/mir/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3096,9 +3096,11 @@ mod size_asserts {
30963096
// tidy-alphabetical-start
30973097
static_assert_size!(BasicBlockData<'_>, 144);
30983098
static_assert_size!(LocalDecl<'_>, 40);
3099+
static_assert_size!(SourceScopeData<'_>, 72);
30993100
static_assert_size!(Statement<'_>, 32);
31003101
static_assert_size!(StatementKind<'_>, 16);
31013102
static_assert_size!(Terminator<'_>, 112);
31023103
static_assert_size!(TerminatorKind<'_>, 96);
3104+
static_assert_size!(VarDebugInfo<'_>, 80);
31033105
// tidy-alphabetical-end
31043106
}

0 commit comments

Comments
 (0)