Skip to content

Commit c64c776

Browse files
committed
Remove a comment that made only sense in the original position of this cycle check.
1 parent ba26df0 commit c64c776

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustc_mir/interpret/operand.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
244244
// We may be reading from a static.
245245
// In order to ensure that `static FOO: Type = FOO;` causes a cycle error
246246
// instead of magically pulling *any* ZST value from the ether, we need to
247-
// actually access the referenced allocation. The caller is likely
248-
// to short-circuit on `None`, so we trigger the access here to
249-
// make sure it happens.
247+
// actually access the referenced allocation.
250248
self.memory.get_raw(ptr.alloc_id)?;
251249
}
252250
return Ok(Some(ImmTy {

0 commit comments

Comments
 (0)