Stop sorting DefIds in the compiler

This commit is contained in:
Oli Scherer 2024-03-21 17:14:14 +00:00
parent 5676326c72
commit e522d2906d
2 changed files with 3 additions and 3 deletions

View file

@ -1185,7 +1185,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
})
.collect::<Vec<_>>();
if !inherent_impls_candidate.is_empty() {
inherent_impls_candidate.sort();
inherent_impls_candidate.sort_by_key(|id| self.tcx.def_path_str(id));
inherent_impls_candidate.dedup();
// number of types to show at most