@@ -42,8 +42,6 @@ use rustc_span::symbol::{kw, Ident, Symbol};
42
42
use rustc_span:: { sym, Span } ;
43
43
use rustc_target:: abi:: Align ;
44
44
45
- use std:: cmp:: Ordering ;
46
- use std:: collections:: BTreeMap ;
47
45
use std:: hash:: { Hash , Hasher } ;
48
46
use std:: ops:: ControlFlow ;
49
47
use std:: { fmt, ptr, str} ;
@@ -134,7 +132,7 @@ pub struct ResolverOutputs {
134
132
/// via `extern crate` item and not `--extern` option or compiler built-in.
135
133
pub extern_prelude : FxHashMap < Symbol , bool > ,
136
134
pub main_def : Option < MainDefinition > ,
137
- pub trait_impls : BTreeMap < DefId , Vec < LocalDefId > > ,
135
+ pub trait_impls : FxHashMap < DefId , Vec < LocalDefId > > ,
138
136
/// A list of proc macro LocalDefIds, written out in the order in which
139
137
/// they are declared in the static array generated by proc_macro_harness.
140
138
pub proc_macros : Vec < LocalDefId > ,
@@ -421,18 +419,6 @@ impl<'tcx> TyS<'tcx> {
421
419
#[ cfg( all( target_arch = "x86_64" , target_pointer_width = "64" ) ) ]
422
420
static_assert_size ! ( TyS <' _>, 40 ) ;
423
421
424
- impl < ' tcx > Ord for TyS < ' tcx > {
425
- fn cmp ( & self , other : & TyS < ' tcx > ) -> Ordering {
426
- self . kind ( ) . cmp ( other. kind ( ) )
427
- }
428
- }
429
-
430
- impl < ' tcx > PartialOrd for TyS < ' tcx > {
431
- fn partial_cmp ( & self , other : & TyS < ' tcx > ) -> Option < Ordering > {
432
- Some ( self . kind ( ) . cmp ( other. kind ( ) ) )
433
- }
434
- }
435
-
436
422
impl < ' tcx > PartialEq for TyS < ' tcx > {
437
423
#[ inline]
438
424
fn eq ( & self , other : & TyS < ' tcx > ) -> bool {
@@ -1101,7 +1087,7 @@ pub type PlaceholderRegion = Placeholder<BoundRegionKind>;
1101
1087
pub type PlaceholderType = Placeholder < BoundVar > ;
1102
1088
1103
1089
#[ derive( Copy , Clone , Debug , PartialEq , Eq , Hash , HashStable ) ]
1104
- #[ derive( TyEncodable , TyDecodable , PartialOrd , Ord ) ]
1090
+ #[ derive( TyEncodable , TyDecodable ) ]
1105
1091
pub struct BoundConst < ' tcx > {
1106
1092
pub var : BoundVar ,
1107
1093
pub ty : Ty < ' tcx > ,
@@ -1161,7 +1147,7 @@ pub type PlaceholderConst<'tcx> = Placeholder<BoundConst<'tcx>>;
1161
1147
/// Meaning that we need to use `type_of(const_param_did)` if `const_param_did` is `Some`
1162
1148
/// to get the type of `did`.
1163
1149
#[ derive( Copy , Clone , Debug , TypeFoldable , Lift , TyEncodable , TyDecodable ) ]
1164
- #[ derive( PartialEq , Eq , PartialOrd , Ord ) ]
1150
+ #[ derive( PartialEq , Eq ) ]
1165
1151
#[ derive( Hash , HashStable ) ]
1166
1152
pub struct WithOptConstParam < T > {
1167
1153
pub did : T ,
0 commit comments