Rollup merge of #124006 - Zalathar:static-assert, r=nnethercote
Move size assertions for `mir::syntax` types into the same file A redundant size assertion for `StatementKind` was added in #122937, because the existing assertion was in a different file. This PR cleans that up, and also moves the `TerminatorKind` assertion into the same file where it belongs, to avoid the same thing happening again. r? `@nnethercote`
This commit is contained in:
commit
dd083470e1
2 changed files with 1 additions and 2 deletions
|
@ -1823,9 +1823,7 @@ mod size_asserts {
|
||||||
static_assert_size!(LocalDecl<'_>, 40);
|
static_assert_size!(LocalDecl<'_>, 40);
|
||||||
static_assert_size!(SourceScopeData<'_>, 64);
|
static_assert_size!(SourceScopeData<'_>, 64);
|
||||||
static_assert_size!(Statement<'_>, 32);
|
static_assert_size!(Statement<'_>, 32);
|
||||||
static_assert_size!(StatementKind<'_>, 16);
|
|
||||||
static_assert_size!(Terminator<'_>, 112);
|
static_assert_size!(Terminator<'_>, 112);
|
||||||
static_assert_size!(TerminatorKind<'_>, 96);
|
|
||||||
static_assert_size!(VarDebugInfo<'_>, 88);
|
static_assert_size!(VarDebugInfo<'_>, 88);
|
||||||
// tidy-alphabetical-end
|
// tidy-alphabetical-end
|
||||||
}
|
}
|
||||||
|
|
|
@ -1463,5 +1463,6 @@ mod size_asserts {
|
||||||
static_assert_size!(PlaceElem<'_>, 24);
|
static_assert_size!(PlaceElem<'_>, 24);
|
||||||
static_assert_size!(Rvalue<'_>, 40);
|
static_assert_size!(Rvalue<'_>, 40);
|
||||||
static_assert_size!(StatementKind<'_>, 16);
|
static_assert_size!(StatementKind<'_>, 16);
|
||||||
|
static_assert_size!(TerminatorKind<'_>, 96);
|
||||||
// tidy-alphabetical-end
|
// tidy-alphabetical-end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue