Skip to content

Commit 37344f9

Browse files
committed
WIP
1 parent 8a02371 commit 37344f9

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_middle/src/mir

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/mir/mono.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ impl<'tcx> CodegenUnit<'tcx> {
567567
let mut items: Vec<_> = self.items().iter().map(|(&i, &data)| (i, data)).collect();
568568
if !tcx.sess.opts.unstable_opts.codegen_source_order {
569569
// It's already deterministic, so we can just use it.
570+
items.sort_by_cached_key(|&(i, _)| i.symbol_name(tcx));
570571
return items;
571572
}
572573
items.sort_by_cached_key(|&(i, _)| item_sort_key(tcx, i));

0 commit comments

Comments
 (0)