File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
compiler/rustc_middle/src/mir Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -525,10 +525,9 @@ impl<'tcx> CodegenUnit<'tcx> {
525
525
tcx : TyCtxt < ' tcx > ,
526
526
) -> Vec < ( MonoItem < ' tcx > , MonoItemData ) > {
527
527
// 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
530
529
#[ derive( PartialEq , Eq , PartialOrd , Ord ) ]
531
- struct ItemSortKey < ' tcx > ( Option < Span > , Option < String > , SymbolName < ' tcx > ) ;
530
+ struct ItemSortKey < ' tcx > ( Option < Span > , SymbolName < ' tcx > ) ;
532
531
533
532
// We only want to take HirIds of user-defines instances into account.
534
533
// The others don't matter for the codegen tests and can even make item
@@ -561,7 +560,6 @@ impl<'tcx> CodegenUnit<'tcx> {
561
560
local_item_id ( item)
562
561
. map ( |def_id| tcx. def_span ( def_id) . find_ancestor_not_from_macro ( ) )
563
562
. flatten ( ) ,
564
- local_item_id ( item) . map ( |def_id| tcx. def_path ( def_id) . to_string_no_crate_verbose ( ) ) ,
565
563
item. symbol_name ( tcx) ,
566
564
)
567
565
}
You can’t perform that action at this time.
0 commit comments