@@ -318,11 +318,11 @@ impl<'a> CrateLoader<'a> {
318
318
name : & str ,
319
319
hash : Option < & Svh > ,
320
320
span : Span ,
321
- kind : PathKind ,
321
+ path_kind : PathKind ,
322
322
mut dep_kind : DepKind )
323
323
-> ( CrateNum , Rc < cstore:: CrateMetadata > ) {
324
324
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 ) {
326
326
LoadResult :: Previous ( cnum)
327
327
} else {
328
328
info ! ( "falling back to a load" ) ;
@@ -332,7 +332,7 @@ impl<'a> CrateLoader<'a> {
332
332
ident : ident,
333
333
crate_name : name,
334
334
hash : hash. map ( |a| & * a) ,
335
- filesearch : self . sess . target_filesearch ( kind ) ,
335
+ filesearch : self . sess . target_filesearch ( path_kind ) ,
336
336
target : & self . sess . target . target ,
337
337
triple : & self . sess . opts . target_triple ,
338
338
root : root,
@@ -350,7 +350,7 @@ impl<'a> CrateLoader<'a> {
350
350
let mut proc_macro_locator = locator:: Context {
351
351
target : & self . sess . host ,
352
352
triple : config:: host_triple ( ) ,
353
- filesearch : self . sess . host_filesearch ( PathKind :: Crate ) ,
353
+ filesearch : self . sess . host_filesearch ( path_kind ) ,
354
354
rejected_via_hash : vec ! [ ] ,
355
355
rejected_via_triple : vec ! [ ] ,
356
356
rejected_via_kind : vec ! [ ] ,
0 commit comments