about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-07-04 09:05:23 -0400
committerRalf Jung <post@ralfj.de>2022-07-04 09:05:23 -0400
commitb1568e6f34e500a4d9cdecd9873f4abf67a877a0 (patch)
tree06abb945c041942f7fa9372ae2e49e7e9617e654
parent8955686e055c27447c2616555f3fce4ea7c6a61d (diff)
downloadrust-b1568e6f34e500a4d9cdecd9873f4abf67a877a0.tar.gz
rust-b1568e6f34e500a4d9cdecd9873f4abf67a877a0.zip
clarify comment
-rw-r--r--compiler/rustc_const_eval/src/interpret/operand.rs3
1 files changed, 2 insertions, 1 deletions
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<Align>,
 }