Closed
Description
This code creates MIR statements based on an FxHashMap
iteration order:
rust/compiler/rustc_mir_transform/src/elaborate_drops.rs
Lines 493 to 495 in 404c847
drop_flags
is defined as:
Since FxHashMap's fixed seed is different between 32 and 64 bit platforms, we may end up creating statements in a different order on 32-bit vs 64-bit hosts (the target platform passed to the compiler has no effect).
We should probably sort by MovePathIndex
before creating the statements.