@@ -318,11 +318,11 @@ impl<'a> CrateLoader<'a> {
318318 name : & str ,
319319 hash : Option < & Svh > ,
320320 span : Span ,
321- kind : PathKind ,
321+ path_kind : PathKind ,
322322 mut dep_kind : DepKind )
323323 -> ( CrateNum , Rc < cstore:: CrateMetadata > ) {
324324 info ! ( "resolving crate `extern crate {} as {}`" , name, ident) ;
325- let result = if let Some ( cnum) = self . existing_match ( name, hash, kind ) {
325+ let result = if let Some ( cnum) = self . existing_match ( name, hash, path_kind ) {
326326 LoadResult :: Previous ( cnum)
327327 } else {
328328 info ! ( "falling back to a load" ) ;
@@ -332,7 +332,7 @@ impl<'a> CrateLoader<'a> {
332332 ident : ident,
333333 crate_name : name,
334334 hash : hash. map ( |a| & * a) ,
335- filesearch : self . sess . target_filesearch ( kind ) ,
335+ filesearch : self . sess . target_filesearch ( path_kind ) ,
336336 target : & self . sess . target . target ,
337337 triple : & self . sess . opts . target_triple ,
338338 root : root,
@@ -350,7 +350,7 @@ impl<'a> CrateLoader<'a> {
350350 let mut proc_macro_locator = locator:: Context {
351351 target : & self . sess . host ,
352352 triple : config:: host_triple ( ) ,
353- filesearch : self . sess . host_filesearch ( PathKind :: Crate ) ,
353+ filesearch : self . sess . host_filesearch ( path_kind ) ,
354354 rejected_via_hash : vec ! [ ] ,
355355 rejected_via_triple : vec ! [ ] ,
356356 rejected_via_kind : vec ! [ ] ,
0 commit comments