File tree 2 files changed +3
-7
lines changed
compiler/rustc_metadata/src
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -450,6 +450,7 @@ impl<'a> CrateLoader<'a> {
450
450
& self ,
451
451
locator : & mut CrateLocator < ' b > ,
452
452
path_kind : PathKind ,
453
+ host_hash : Option < Svh > ,
453
454
) -> Result < Option < ( LoadResult , Option < Library > ) > , CrateError >
454
455
where
455
456
' a : ' b ,
@@ -471,7 +472,7 @@ impl<'a> CrateLoader<'a> {
471
472
Some ( LoadResult :: Loaded ( library) ) => Some ( LoadResult :: Loaded ( library) ) ,
472
473
None => return Ok ( None ) ,
473
474
} ;
474
- locator. hash = locator . host_hash ;
475
+ locator. hash = host_hash;
475
476
// Use the locator when looking for the host proc macro crate, as that is required
476
477
// so we want it to affect the error message
477
478
( locator, result)
@@ -551,7 +552,6 @@ impl<'a> CrateLoader<'a> {
551
552
& * self . metadata_loader ,
552
553
name,
553
554
hash,
554
- host_hash,
555
555
extra_filename,
556
556
false , // is_host
557
557
path_kind,
@@ -562,7 +562,7 @@ impl<'a> CrateLoader<'a> {
562
562
Some ( res) => ( res, None ) ,
563
563
None => {
564
564
dep_kind = CrateDepKind :: MacrosOnly ;
565
- match self . load_proc_macro ( & mut locator, path_kind) ? {
565
+ match self . load_proc_macro ( & mut locator, path_kind, host_hash ) ? {
566
566
Some ( res) => res,
567
567
None => return Err ( locator. into_error ( ) ) ,
568
568
}
Original file line number Diff line number Diff line change @@ -248,7 +248,6 @@ crate struct CrateLocator<'a> {
248
248
crate_name : Symbol ,
249
249
exact_paths : Vec < CanonicalizedPath > ,
250
250
pub hash : Option < Svh > ,
251
- pub host_hash : Option < Svh > ,
252
251
extra_filename : Option < & ' a str > ,
253
252
pub target : & ' a Target ,
254
253
pub triple : TargetTriple ,
@@ -299,7 +298,6 @@ impl<'a> CrateLocator<'a> {
299
298
metadata_loader : & ' a dyn MetadataLoader ,
300
299
crate_name : Symbol ,
301
300
hash : Option < Svh > ,
302
- host_hash : Option < Svh > ,
303
301
extra_filename : Option < & ' a str > ,
304
302
is_host : bool ,
305
303
path_kind : PathKind ,
@@ -334,7 +332,6 @@ impl<'a> CrateLocator<'a> {
334
332
Vec :: new ( )
335
333
} ,
336
334
hash,
337
- host_hash,
338
335
extra_filename,
339
336
target : if is_host { & sess. host } else { & sess. target } ,
340
337
triple : if is_host {
@@ -807,7 +804,6 @@ fn find_plugin_registrar_impl<'a>(
807
804
metadata_loader,
808
805
name,
809
806
None , // hash
810
- None , // host_hash
811
807
None , // extra_filename
812
808
true , // is_host
813
809
PathKind :: Crate ,
You can’t perform that action at this time.
0 commit comments