@@ -7,7 +7,6 @@ use crate::check::autoderef::{self, Autoderef};
77use crate :: check:: FnCtxt ;
88use crate :: hir:: def_id:: DefId ;
99use crate :: hir:: def:: DefKind ;
10- use crate :: hir:: SmallHirIdVec ;
1110use crate :: namespace:: Namespace ;
1211
1312use rustc_data_structures:: sync:: Lrc ;
@@ -36,7 +35,7 @@ use std::mem;
3635use std:: ops:: Deref ;
3736use std:: cmp:: max;
3837
39- use smallvec:: smallvec;
38+ use smallvec:: { smallvec, SmallVec } ;
4039
4140use self :: CandidateKind :: * ;
4241pub use self :: PickKind :: * ;
@@ -124,7 +123,7 @@ struct Candidate<'tcx> {
124123 xform_ret_ty : Option < Ty < ' tcx > > ,
125124 item : ty:: AssociatedItem ,
126125 kind : CandidateKind < ' tcx > ,
127- import_ids : SmallHirIdVec ,
126+ import_ids : SmallVec < [ hir :: HirId ; 1 ] > ,
128127}
129128
130129#[ derive( Debug ) ]
@@ -149,7 +148,7 @@ enum ProbeResult {
149148pub struct Pick < ' tcx > {
150149 pub item : ty:: AssociatedItem ,
151150 pub kind : PickKind < ' tcx > ,
152- pub import_ids : hir:: SmallHirIdVec ,
151+ pub import_ids : SmallVec < [ hir:: HirId ; 1 ] > ,
153152
154153 // Indicates that the source expression should be autoderef'd N times
155154 //
@@ -894,7 +893,7 @@ impl<'a, 'gcx, 'tcx> ProbeContext<'a, 'gcx, 'tcx> {
894893 }
895894
896895 fn assemble_extension_candidates_for_trait ( & mut self ,
897- import_ids : SmallHirIdVec ,
896+ import_ids : SmallVec < [ hir :: HirId ; 1 ] > ,
898897 trait_def_id : DefId )
899898 -> Result < ( ) , MethodError < ' tcx > > {
900899 debug ! ( "assemble_extension_candidates_for_trait(trait_def_id={:?})" ,
0 commit comments