1
Fork 0
rust/compiler/rustc_middle/src
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
..
dep_graph Make DefPathHash->DefId panic for if the mapping fails. 2021-09-14 13:56:33 +02:00
hir Apply suggestions from code review 2021-09-30 17:40:17 +02:00
ich Auto merge of #89016 - lcnr:non_blanket_impls, r=nikomatsakis,michaelwoerister 2021-09-23 15:44:53 +00:00
infer Miscellaneous inlining improvements 2021-06-02 08:49:58 +02:00
middle Auto merge of #89395 - In-line:remove_visible_path_from_allowed_deprecated_lint, r=jyn514 2021-10-01 06:19:52 +00:00
mir Remove DefId from ConstraintCategory::Predicate 2021-09-27 10:45:34 -05:00
query Fix typo 2021-09-23 18:57:23 +09:00
thir add a CastKind to Node::Cast 2021-09-09 01:32:03 +01:00
traits Rollup merge of #88963 - fee1-dead:const-iterator, r=oli-obk 2021-10-01 14:46:48 -07:00
ty Auto merge of #89408 - Mark-Simulacrum:fix-query-nondet, r=petrochenkov 2021-10-02 13:36:27 +00:00
util Make panic/assert calls in rustc compatible with Rust 2021. 2021-02-03 22:42:53 +01:00
arena.rs ty::layout: intern FnAbis as &'tcx. 2021-09-18 01:42:45 +03:00
lib.rs Gather module items after lowering. 2021-09-12 16:33:16 +02:00
lint.rs Fix #88256, remove duplicated diagnostic 2021-09-04 19:26:25 +08:00
macros.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
tests.rs
thir.rs rename mir -> thir around abstract consts 2021-09-09 01:32:03 +01:00