@@ -57,7 +57,7 @@ use rustc_span::{Span, DUMMY_SP};
57
57
use smallvec:: { smallvec, SmallVec } ;
58
58
use std:: cell:: { Cell , RefCell } ;
59
59
use std:: collections:: BTreeSet ;
60
- use std:: { cmp , fmt, ptr} ;
60
+ use std:: { fmt, ptr} ;
61
61
62
62
use diagnostics:: { ImportSuggestion , LabelSuggestion , Suggestion } ;
63
63
use imports:: { Import , ImportKind , ImportResolver , NameResolution } ;
@@ -163,32 +163,13 @@ enum ImplTraitContext {
163
163
Universal ( LocalDefId ) ,
164
164
}
165
165
166
- #[ derive( Eq ) ]
167
166
struct BindingError {
168
167
name : Symbol ,
169
168
origin : BTreeSet < Span > ,
170
169
target : BTreeSet < Span > ,
171
170
could_be_path : bool ,
172
171
}
173
172
174
- impl PartialOrd for BindingError {
175
- fn partial_cmp ( & self , other : & BindingError ) -> Option < cmp:: Ordering > {
176
- Some ( self . cmp ( other) )
177
- }
178
- }
179
-
180
- impl PartialEq for BindingError {
181
- fn eq ( & self , other : & BindingError ) -> bool {
182
- self . name == other. name
183
- }
184
- }
185
-
186
- impl Ord for BindingError {
187
- fn cmp ( & self , other : & BindingError ) -> cmp:: Ordering {
188
- self . name . cmp ( & other. name )
189
- }
190
- }
191
-
192
173
enum ResolutionError < ' a > {
193
174
/// Error E0401: can't use type or const parameters from outer function.
194
175
GenericParamsFromOuterFunction ( Res , HasGenericParams ) ,
@@ -845,7 +826,7 @@ impl<'a> NameBinding<'a> {
845
826
}
846
827
}
847
828
848
- #[ derive( Debug , Default , Clone ) ]
829
+ #[ derive( Default , Clone ) ]
849
830
pub struct ExternPreludeEntry < ' a > {
850
831
extern_crate_item : Option < & ' a NameBinding < ' a > > ,
851
832
pub introduced_by_item : bool ,
0 commit comments