mirror of
https://github.com/storytold/egui.git
synced 2026-11-22 10:32:02 +01:00
`with_salt_matches_with` and `with_one_child` built the same `Id` by
different routes.
The debug source map keeps the first spelling it sees for an `Id` and
ignores later ones, so whichever test ran first decided what the other
one's `{:?}` printed — and the test order is not fixed.
Giving `with_salt_matches_with` sources of its own removes the shared
entry.
Surfaced by the red `Run tests` on #8571, which does not touch `id.rs`.
It reproduces on `main`: running just the two tests together, 10 of 15
runs failed before this change, and 12 runs of the whole module after it
failed none.
🤖 This PR was opened by a coding agent (Claude Opus 5).
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>