mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
0358617e3f
Make re-export collection deterministic Fixes https://github.com/rust-lang/rust/issues/65036 Previously, we were using an `FxHashMap` to collect module re-exports. However, re-exports end up getting serialized into crate metadata, which means that metadata generation was non-deterministic. This resulted in spurious error messages changes (e.g. PR #64906) due to pretty-printing implicitly depending on the order of re-exports when computing the proper path to show to the user. See #65042 for a long-term strategy to detect this kind of issue