@@ -35,7 +35,7 @@ use rustc_data_structures::sync::{self, par_iter, Lrc, ParallelIterator};
3535use rustc_hir as hir;
3636use rustc_hir:: def:: { CtorKind , CtorOf , DefKind , Res } ;
3737use rustc_hir:: def_id:: { CrateNum , DefId , DefIdMap , LocalDefId , CRATE_DEF_INDEX , LOCAL_CRATE } ;
38- use rustc_hir:: { Constness , GlobMap , Node } ;
38+ use rustc_hir:: { Constness , GlobMap , Node , TraitMap } ;
3939use rustc_index:: vec:: { Idx , IndexVec } ;
4040use rustc_macros:: HashStable ;
4141use rustc_serialize:: { self , Encodable , Encoder } ;
@@ -46,7 +46,6 @@ use rustc_target::abi::Align;
4646use syntax:: ast:: { self , Ident , Name } ;
4747use syntax:: node_id:: { NodeId , NodeMap , NodeSet } ;
4848
49- use smallvec:: SmallVec ;
5049use std:: cell:: RefCell ;
5150use std:: cmp:: { self , Ordering } ;
5251use std:: fmt;
@@ -124,23 +123,6 @@ mod sty;
124123
125124// Data types
126125
127- #[ derive( Clone , Debug ) ]
128- pub struct TraitCandidate {
129- pub def_id : DefId ,
130- pub import_ids : SmallVec < [ NodeId ; 1 ] > ,
131- }
132-
133- impl TraitCandidate {
134- fn node_to_hir_id ( self , definitions : & hir_map:: Definitions ) -> hir:: TraitCandidate {
135- let TraitCandidate { def_id, import_ids } = self ;
136- let import_ids =
137- import_ids. into_iter ( ) . map ( |node_id| definitions. node_to_hir_id ( node_id) ) . collect ( ) ;
138- hir:: TraitCandidate { def_id, import_ids }
139- }
140- }
141-
142- pub type TraitMap = NodeMap < Vec < TraitCandidate > > ;
143-
144126pub struct ResolverOutputs {
145127 pub definitions : hir_map:: Definitions ,
146128 pub cstore : Box < CrateStoreDyn > ,
0 commit comments