File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change 2
2
//! `.chalk` files containing those definitions.
3
3
use std:: {
4
4
borrow:: Borrow ,
5
- cmp:: { Ord , Ordering } ,
6
5
collections:: BTreeSet ,
7
6
fmt:: { self , Debug , Display } ,
8
7
io:: Write ,
@@ -581,13 +580,6 @@ impl<I: Interner> From<GeneratorId<I>> for RecordedItemId<I> {
581
580
}
582
581
}
583
582
584
- /// Utility for implementing Ord for RecordedItemId.
585
- #[ derive( PartialEq , Eq , PartialOrd , Ord ) ]
586
- enum OrderedItemId < ' a , DefId , AdtId > {
587
- DefId ( & ' a DefId ) ,
588
- AdtId ( & ' a AdtId ) ,
589
- }
590
-
591
583
impl < I : Interner > RecordedItemId < I > {
592
584
/// Extract internal identifier. Allows for absolute ordering matching the
593
585
/// order in which chalk saw things (and thus reproducing that order in
@@ -603,15 +595,3 @@ impl<I: Interner> RecordedItemId<I> {
603
595
}
604
596
}
605
597
}
606
-
607
- impl < I : Interner > PartialOrd for RecordedItemId < I > {
608
- fn partial_cmp ( & self , other : & Self ) -> Option < Ordering > {
609
- Some ( self . cmp ( other) )
610
- }
611
- }
612
-
613
- impl < I : Interner > Ord for RecordedItemId < I > {
614
- fn cmp ( & self , other : & Self ) -> Ordering {
615
- self . ordered_item_id ( ) . cmp ( & other. ordered_item_id ( ) )
616
- }
617
- }
You can’t perform that action at this time.
0 commit comments