diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-11-03 12:04:26 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-11-25 08:11:53 +0000 |
| commit | 2e79f5f9f8b16444e86cb611d1f819023317d974 (patch) | |
| tree | 2e6fefc896bacf4be9834eb785f2a579b8b7ce08 /compiler/rustc_const_eval/src | |
| parent | 98c550ecc8ea51db79bc4a83f9fb518220add79c (diff) | |
| download | rust-2e79f5f9f8b16444e86cb611d1f819023317d974.tar.gz rust-2e79f5f9f8b16444e86cb611d1f819023317d974.zip | |
Move a comment to the right place
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/validity.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/validity.rs b/compiler/rustc_const_eval/src/interpret/validity.rs index d69192ef6ed..0e85c7d11bc 100644 --- a/compiler/rustc_const_eval/src/interpret/validity.rs +++ b/compiler/rustc_const_eval/src/interpret/validity.rs @@ -785,10 +785,10 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M> } } Abi::ScalarPair(a_layout, b_layout) => { + // We can only proceed if *both* scalars need to be initialized. + // FIXME: find a way to also check ScalarPair when one side can be uninit but + // the other must be init. if !a_layout.is_uninit_valid() && !b_layout.is_uninit_valid() { - // We can only proceed if *both* scalars need to be initialized. - // FIXME: find a way to also check ScalarPair when one side can be uninit but - // the other must be init. let (a, b) = self.read_immediate(op, "initiailized scalar value")?.to_scalar_pair(); self.visit_scalar(a, a_layout)?; |
