-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
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
for flag in self.drop_flags.values() { | |
self.patch.add_assign(loc, Place::from(*flag), false_.clone()); | |
} |
drop_flags
is defined as:
drop_flags: FxHashMap<MovePathIndex, Local>, |
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.
compiler-errorsecstatic-morse
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.