Skip to content

Commit 4d592ba

Browse files
StrophoxRalfJung
andauthored
Change comment in compiler/rustc_const_eval/src/interpret/memory.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent 3bee29b commit 4d592ba

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_const_eval/src/interpret

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/interpret/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,9 +956,9 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
956956
let mut todo = vec![id];
957957
while let Some(id) = todo.pop() {
958958
if !done.insert(id) {
959+
// We already saw this allocation before, don't process it again.
959960
continue;
960961
}
961-
// This is a new allocation, add the allocations it points to to `todo`.
962962
let info = self.get_alloc_info(id);
963963

964964
// If there is no data behind this pointer, skip this.

0 commit comments

Comments
 (0)