Skip to content

Commit 1531c39

Browse files
committed
Documentation nit
1 parent 20c1b3f commit 1531c39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_mir/interpret/operand.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,8 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
582582
// The reason we use `const_eval_raw` everywhere else is to prevent cycles during
583583
// validation, because validation automatically reads through any references, thus
584584
// potentially requiring the current static to be evaluated again. This is not a
585-
// problem here, because we need an operand and operands are always reads.
585+
// problem here, because we are building an operand which means an actual read is
586+
// happening.
586587
// FIXME(oli-obk): eliminate all the `const_eval_raw` usages when we get rid of
587588
// `StaticKind` once and for all.
588589
return self.const_eval(GlobalId { instance, promoted: None });

0 commit comments

Comments
 (0)