Skip to content

Commit a9ba3d9

Browse files
committed
Remove DefPath
1 parent d6294cc commit a9ba3d9

File tree

1 file changed

+2
-4
lines changed
  • compiler/rustc_middle/src/mir

1 file changed

+2
-4
lines changed

compiler/rustc_middle/src/mir/mono.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,9 @@ impl<'tcx> CodegenUnit<'tcx> {
525525
tcx: TyCtxt<'tcx>,
526526
) -> Vec<(MonoItem<'tcx>, MonoItemData)> {
527527
// The codegen tests rely on items being process in the same order as
528-
// they appear in the file, so for local items, we sort by span and
529-
// def_path first
528+
// they appear in the file, so for local items, we sort by span first
530529
#[derive(PartialEq, Eq, PartialOrd, Ord)]
531-
struct ItemSortKey<'tcx>(Option<Span>, Option<String>, SymbolName<'tcx>);
530+
struct ItemSortKey<'tcx>(Option<Span>, SymbolName<'tcx>);
532531

533532
// We only want to take HirIds of user-defines instances into account.
534533
// The others don't matter for the codegen tests and can even make item
@@ -561,7 +560,6 @@ impl<'tcx> CodegenUnit<'tcx> {
561560
local_item_id(item)
562561
.map(|def_id| tcx.def_span(def_id).find_ancestor_not_from_macro())
563562
.flatten(),
564-
local_item_id(item).map(|def_id| tcx.def_path(def_id).to_string_no_crate_verbose()),
565563
item.symbol_name(tcx),
566564
)
567565
}

0 commit comments

Comments
 (0)