From b1568e6f34e500a4d9cdecd9873f4abf67a877a0 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 4 Jul 2022 09:05:23 -0400 Subject: [PATCH] clarify comment --- compiler/rustc_const_eval/src/interpret/operand.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_const_eval/src/interpret/operand.rs b/compiler/rustc_const_eval/src/interpret/operand.rs index 622a8139f87..d48f6521ba2 100644 --- a/compiler/rustc_const_eval/src/interpret/operand.rs +++ b/compiler/rustc_const_eval/src/interpret/operand.rs @@ -182,7 +182,8 @@ pub struct OpTy<'tcx, Tag: Provenance = AllocId> { /// So we represent this here with a separate field that "overwrites" `layout.align`. /// This means `layout.align` should never be used for an `OpTy`! /// `None` means "alignment does not matter since this is a by-value operand" - /// (`Operand::Immediate`). + /// (`Operand::Immediate`); this field is only relevant for `Operand::Indirect`. + /// Also CTFE ignores alignment anyway, so this is for Miri only. pub align: Option, }