Skip to content

Commit 2e79f5f

Browse files
committed
Move a comment to the right place
1 parent 98c550e commit 2e79f5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_const_eval/src/interpret/validity.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,10 +785,10 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
785785
}
786786
}
787787
Abi::ScalarPair(a_layout, b_layout) => {
788+
// We can only proceed if *both* scalars need to be initialized.
789+
// FIXME: find a way to also check ScalarPair when one side can be uninit but
790+
// the other must be init.
788791
if !a_layout.is_uninit_valid() && !b_layout.is_uninit_valid() {
789-
// We can only proceed if *both* scalars need to be initialized.
790-
// FIXME: find a way to also check ScalarPair when one side can be uninit but
791-
// the other must be init.
792792
let (a, b) =
793793
self.read_immediate(op, "initiailized scalar value")?.to_scalar_pair();
794794
self.visit_scalar(a, a_layout)?;

0 commit comments

Comments
 (0)