Skip to content

Commit 94ed9c9

Browse files
cjgillotMark-Simulacrum
authored andcommitted
Sort query output.
1 parent f1aa652 commit 94ed9c9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_resolve/src/late/lifetimes.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,11 @@ fn convert_named_region_map(tcx: TyCtxt<'_>, named_region_map: NamedRegionMap) -
482482
let def_id = tcx.hir().local_def_id(hir_id);
483483
map.insert(def_id);
484484
}
485+
for (_, late_bound) in &mut rl.late_bound {
486+
late_bound.sort_by(|&a, &b| {
487+
tcx.def_path_hash(a.to_def_id()).cmp(&tcx.def_path_hash(b.to_def_id()))
488+
});
489+
}
485490
for (hir_id, v) in named_region_map.late_bound_vars {
486491
let map = rl.late_bound_vars.entry(hir_id.owner).or_default();
487492
map.insert(hir_id.local_id, v);

0 commit comments

Comments
 (0)