From 669b99d35e222f9449a4bdf9b0a0f615fce11666 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Mon, 16 Oct 2023 18:33:05 +0000 Subject: [PATCH] Elaborate comment. --- src/tools/compiletest/src/runtest.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index dfb5013850f8..4868225f5e46 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;