@@ -70,7 +70,7 @@ use util::nodemap::{FnvHashMap};
70
70
use arena:: TypedArena ;
71
71
use std:: borrow:: { BorrowFrom , Cow } ;
72
72
use std:: cell:: { Cell , RefCell } ;
73
- use std:: cmp:: { self , Ordering } ;
73
+ use std:: cmp;
74
74
use std:: fmt:: { self , Show } ;
75
75
use std:: hash:: { Hash , Writer , SipHasher , Hasher } ;
76
76
use std:: mem;
@@ -5096,25 +5096,6 @@ pub fn associated_type_parameter_index(cx: &ctxt,
5096
5096
cx. sess . bug ( "couldn't find associated type parameter index" )
5097
5097
}
5098
5098
5099
- #[ derive( Copy , PartialEq , Eq ) ]
5100
- pub struct AssociatedTypeInfo {
5101
- pub def_id : ast:: DefId ,
5102
- pub index : uint ,
5103
- pub name : ast:: Name ,
5104
- }
5105
-
5106
- impl PartialOrd for AssociatedTypeInfo {
5107
- fn partial_cmp ( & self , other : & AssociatedTypeInfo ) -> Option < Ordering > {
5108
- Some ( self . index . cmp ( & other. index ) )
5109
- }
5110
- }
5111
-
5112
- impl Ord for AssociatedTypeInfo {
5113
- fn cmp ( & self , other : & AssociatedTypeInfo ) -> Ordering {
5114
- self . index . cmp ( & other. index )
5115
- }
5116
- }
5117
-
5118
5099
pub fn trait_item_def_ids ( cx : & ctxt , id : ast:: DefId )
5119
5100
-> Rc < Vec < ImplOrTraitItemId > > {
5120
5101
lookup_locally_or_in_crate_store ( "trait_item_def_ids" ,
0 commit comments