Skip to content

Commit b1568e6

Browse files
committed
clarify comment
1 parent 8955686 commit b1568e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_const_eval/src/interpret/operand.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ pub struct OpTy<'tcx, Tag: Provenance = AllocId> {
182182
/// So we represent this here with a separate field that "overwrites" `layout.align`.
183183
/// This means `layout.align` should never be used for an `OpTy`!
184184
/// `None` means "alignment does not matter since this is a by-value operand"
185-
/// (`Operand::Immediate`).
185+
/// (`Operand::Immediate`); this field is only relevant for `Operand::Indirect`.
186+
/// Also CTFE ignores alignment anyway, so this is for Miri only.
186187
pub align: Option<Align>,
187188
}
188189

0 commit comments

Comments
 (0)