Skip to content

Commit c0e7659

Browse files
committed
Move size assertions for mir::syntax types into the same file
A redundant size assertion for `StatementKind` was added in rust-lang#122937, because the existing assertion was in a different file. This patch cleans that up, and also moves the `TerminatorKind` assertion into the same file where it belongs, to avoid the same thing happening again.
1 parent 63f70b3 commit c0e7659

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

compiler/rustc_middle/src/mir/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1823,9 +1823,7 @@ mod size_asserts {
18231823
static_assert_size!(LocalDecl<'_>, 40);
18241824
static_assert_size!(SourceScopeData<'_>, 64);
18251825
static_assert_size!(Statement<'_>, 32);
1826-
static_assert_size!(StatementKind<'_>, 16);
18271826
static_assert_size!(Terminator<'_>, 112);
1828-
static_assert_size!(TerminatorKind<'_>, 96);
18291827
static_assert_size!(VarDebugInfo<'_>, 88);
18301828
// tidy-alphabetical-end
18311829
}

compiler/rustc_middle/src/mir/syntax.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1463,5 +1463,6 @@ mod size_asserts {
14631463
static_assert_size!(PlaceElem<'_>, 24);
14641464
static_assert_size!(Rvalue<'_>, 40);
14651465
static_assert_size!(StatementKind<'_>, 16);
1466+
static_assert_size!(TerminatorKind<'_>, 96);
14661467
// tidy-alphabetical-end
14671468
}

0 commit comments

Comments
 (0)