diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-09-30 14:25:46 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-09-30 14:27:57 -0400 |
| commit | 56fcf0725a164f16b9d7f1ff8fe2f3d6b4aab3db (patch) | |
| tree | 07b1467b47b65f43293568143359e8a6e5ab9fe5 /compiler/rustc_codegen_gcc/example/alloc_system.rs | |
| parent | 69c1c6a173dcae20c245348f6c7d19074b6109b7 (diff) | |
| download | rust-56fcf0725a164f16b9d7f1ff8fe2f3d6b4aab3db.tar.gz rust-56fcf0725a164f16b9d7f1ff8fe2f3d6b4aab3db.zip | |
Avoid nondeterminism in trimmed_def_paths
Previously this query depended on the global interning order of Symbols, which meant that irrelevant changes could influence the query and cause recompilations. This commit ensures that the return set is stable and will not be affected by the global order by deterministically (in lexicographic order) choosing a name to use if there are multiple names for a single DefId.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_system.rs')
0 files changed, 0 insertions, 0 deletions
