@@ -57,7 +57,7 @@ use rustc_span::{Span, DUMMY_SP};
5757use smallvec:: { smallvec, SmallVec } ;
5858use std:: cell:: { Cell , RefCell } ;
5959use std:: collections:: BTreeSet ;
60- use std:: { cmp , fmt, ptr} ;
60+ use std:: { fmt, ptr} ;
6161
6262use diagnostics:: { ImportSuggestion , LabelSuggestion , Suggestion } ;
6363use imports:: { Import , ImportKind , ImportResolver , NameResolution } ;
@@ -163,32 +163,13 @@ enum ImplTraitContext {
163163 Universal ( LocalDefId ) ,
164164}
165165
166- #[ derive( Eq ) ]
167166struct BindingError {
168167 name : Symbol ,
169168 origin : BTreeSet < Span > ,
170169 target : BTreeSet < Span > ,
171170 could_be_path : bool ,
172171}
173172
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-
192173enum ResolutionError < ' a > {
193174 /// Error E0401: can't use type or const parameters from outer function.
194175 GenericParamsFromOuterFunction ( Res , HasGenericParams ) ,
@@ -845,7 +826,7 @@ impl<'a> NameBinding<'a> {
845826 }
846827}
847828
848- #[ derive( Debug , Default , Clone ) ]
829+ #[ derive( Default , Clone ) ]
849830pub struct ExternPreludeEntry < ' a > {
850831 extern_crate_item : Option < & ' a NameBinding < ' a > > ,
851832 pub introduced_by_item : bool ,
0 commit comments