From c64c7766787e6d9d5b80b95832155a11cadcbe40 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Fri, 1 May 2020 17:45:51 +0200 Subject: [PATCH] Remove a comment that made only sense in the original position of this cycle check. --- src/librustc_mir/interpret/operand.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/librustc_mir/interpret/operand.rs b/src/librustc_mir/interpret/operand.rs index 05844eb126c59..6832701e1a5ad 100644 --- a/src/librustc_mir/interpret/operand.rs +++ b/src/librustc_mir/interpret/operand.rs @@ -244,9 +244,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { // We may be reading from a static. // In order to ensure that `static FOO: Type = FOO;` causes a cycle error // instead of magically pulling *any* ZST value from the ether, we need to - // actually access the referenced allocation. The caller is likely - // to short-circuit on `None`, so we trigger the access here to - // make sure it happens. + // actually access the referenced allocation. self.memory.get_raw(ptr.alloc_id)?; } return Ok(Some(ImmTy {