about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-10-16 18:33:05 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-10-16 18:33:05 +0000
commit669b99d35e222f9449a4bdf9b0a0f615fce11666 (patch)
tree753f8fd04bc940c177532d25188d13e44fb6b72b
parentc423305d415cbeea5ac2460a4ba577f7d00a27cf (diff)
downloadrust-669b99d35e222f9449a4bdf9b0a0f615fce11666.tar.gz
rust-669b99d35e222f9449a4bdf9b0a0f615fce11666.zip
Elaborate comment.
-rw-r--r--src/tools/compiletest/src/runtest.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index dfb5013850f..4868225f5e4 100644
--- a/src/tools/compiletest/src/runtest.rs
+++ b/src/tools/compiletest/src/runtest.rs
@@ -4261,6 +4261,8 @@ impl<'test> TestCx<'test> {
         // AllocId are numbered globally in a compilation session. This can lead to changes
         // depending on the exact compilation flags and host architecture. Meanwhile, we want
         // to keep them numbered, to see if the same id appears multiple times.
+        // So we remap to deterministic numbers that only depend on the subset of allocations
+        // that actually appear in the output.
         {
             use std::fmt::Write;