File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
compiler/rustc_metadata/src Expand file tree Collapse file tree 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> {
450450 & self ,
451451 locator : & mut CrateLocator < ' b > ,
452452 path_kind : PathKind ,
453+ host_hash : Option < Svh > ,
453454 ) -> Result < Option < ( LoadResult , Option < Library > ) > , CrateError >
454455 where
455456 ' a : ' b ,
@@ -471,7 +472,7 @@ impl<'a> CrateLoader<'a> {
471472 Some ( LoadResult :: Loaded ( library) ) => Some ( LoadResult :: Loaded ( library) ) ,
472473 None => return Ok ( None ) ,
473474 } ;
474- locator. hash = locator . host_hash ;
475+ locator. hash = host_hash;
475476 // Use the locator when looking for the host proc macro crate, as that is required
476477 // so we want it to affect the error message
477478 ( locator, result)
@@ -551,7 +552,6 @@ impl<'a> CrateLoader<'a> {
551552 & * self . metadata_loader ,
552553 name,
553554 hash,
554- host_hash,
555555 extra_filename,
556556 false , // is_host
557557 path_kind,
@@ -562,7 +562,7 @@ impl<'a> CrateLoader<'a> {
562562 Some ( res) => ( res, None ) ,
563563 None => {
564564 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 ) ? {
566566 Some ( res) => res,
567567 None => return Err ( locator. into_error ( ) ) ,
568568 }
Original file line number Diff line number Diff line change @@ -248,7 +248,6 @@ crate struct CrateLocator<'a> {
248248 crate_name : Symbol ,
249249 exact_paths : Vec < CanonicalizedPath > ,
250250 pub hash : Option < Svh > ,
251- pub host_hash : Option < Svh > ,
252251 extra_filename : Option < & ' a str > ,
253252 pub target : & ' a Target ,
254253 pub triple : TargetTriple ,
@@ -299,7 +298,6 @@ impl<'a> CrateLocator<'a> {
299298 metadata_loader : & ' a dyn MetadataLoader ,
300299 crate_name : Symbol ,
301300 hash : Option < Svh > ,
302- host_hash : Option < Svh > ,
303301 extra_filename : Option < & ' a str > ,
304302 is_host : bool ,
305303 path_kind : PathKind ,
@@ -334,7 +332,6 @@ impl<'a> CrateLocator<'a> {
334332 Vec :: new ( )
335333 } ,
336334 hash,
337- host_hash,
338335 extra_filename,
339336 target : if is_host { & sess. host } else { & sess. target } ,
340337 triple : if is_host {
@@ -807,7 +804,6 @@ fn find_plugin_registrar_impl<'a>(
807804 metadata_loader,
808805 name,
809806 None , // hash
810- None , // host_hash
811807 None , // extra_filename
812808 true , // is_host
813809 PathKind :: Crate ,
You can’t perform that action at this time.
0 commit comments