rust/compiler/rustc_middle
bors edebf77e00 Auto merge of #89408 - Mark-Simulacrum:fix-query-nondet, r=petrochenkov
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.

This should fix the cause of the [regressions] in #83343.

[regressions]: https://perf.rust-lang.org/compare.html?start=9620f3a84b079decfdc2e557be007580b097fe43&end=addb4da686a97da46159f0123cb6cdc2ce3d7fdb
2021-10-02 13:36:27 +00:00
..
benches
src Auto merge of #89408 - Mark-Simulacrum:fix-query-nondet, r=petrochenkov 2021-10-02 13:36:27 +00:00
Cargo.toml Implemented -Z randomize-layout 2021-09-30 14:50:06 -05:00
README.md

For more information about how rustc works, see the rustc dev guide.